It could be useful with generics like: function nonNulls<T>(array: T[]): T![]. If it does then maybe we should simply accept any!. Contributor mhegazy commented Mar 29, 2016 @Arnavion assuming #1809 is in, this request would be just a shorter name for string | number | boolean...
These functions aren't likely to change in the future, but other similar functions could be introduced and might also need patching. For now I'm just dumping out of List to an Array, since definitions for Array are correct. I can submit a PR for this if needed. aleffert commented Sep ...
118 <cfset fieldarray = structkeyarray(arguments.stValues)> 119 <cfloop from='1' to='#arraylen(fieldarray)#' index='i'> 120 <cfif findnocase('fieldnames',fieldarray) eq 0 and findnocase('submit',fieldarray) eq 0> 121 <cfset "arguments.obj.#fieldarray#" = evaluate(fieldarray)...
To write a mapping (also known as an associative array or hash table), use a “:” (colon, U+3A) followed by one or more SPACE characters between the key and the value: square: 4 triangle: 3 pentagon: 5 All keys in a mapping must be unique. For example...
that's usually not how things go. Businesses must often bootstrap or temporarily come up with creative, resourceful solutions to make sure their business needs are being met. Whether relying on personal capital, cutting costs, or limiting business operations, owners have an array of strategies to...
(output, " into a single key with as value a json array containing all\n"); fprintf(output, " values\n"); fprintf(output, " --elastic-mapping-filter <protocols> If -G elastic-mapping is specified, put only the\n"); fprintf(output, " specified protocols within the mapping file\n")...
- apiKey: [] paths: /pages: get: summary: Get a list of pages description: Get a list of pages responses: "200": description: Get a list of pages content: application/json: schema: type: array items: $ref: '#/components/schemas/Page' "401": description: Could not authenticate conte...
* * Contrary to krealloc_array, does not free arr if new_n is zero. */ static void *realloc_array(void *arr, size_t old_n, size_t new_n, size_t size) { size_t alloc_size; void *new_arr; if (!new_n || old_n == new_n) goto out; alloc_size = kmalloc_size_roundup(...
(struct dell_smm_data *data, int channel) { bool dock = false; int type = i8k_get_fan_type(data, channel); if (type < 0) return ERR_PTR(type); if (type & 0x10) { dock = true; type &= 0x0F; } if (type >= ARRAY_SIZE(fan_labels)) type = ARRAY_SIZE(fan_labels) - ...
DIR_SKIP_NESTED_GIT = 1<<9 } flags; /* The number of members in `entries[]` array. */ int nr; /* output only */ /* The number of members in `ignored[]` array. */ int ignored_nr; /* output only */ /* An array of `struct dir_entry`, each element of which describes a...