Function kdbplus::api::enumerate_n
source · [−]Expand description
Extract the first n
chars from a character array and enumerate it internally.
This function must be used to add a character array as a symbol value to a symbol list.
The returned value is the same character array as the input.
Example
See the example of flip
.
Note
The reason why this function must be used is to enumerate the character array before handling
it as a q symbol type value. q/kdb+ is enumerating all symbol values to optimize comparison
or memory usage. On the other hand new_symbol
does the enumeration internally and
therefore it does not need this function.