Skip to main content

Character arrays - mkarray

Laurence MorganLess than 1 minute

Character arrays - mkarray

Making character arrays (a to z)

Description

You can create arrays from a range of letters (a to z):

» a: [a..z]
» a: [z..a]
» a: [A..Z]
» a: [Z..A]

...or any characters within that range.

Please refer to a (mkarray) for more detailed usage of mkarray.

Usage

a: [start..end] -> `<stdout>`
a: [start..end,start..end] -> `<stdout>`
a: [start..end][start..end] -> `<stdout>`

All usages also work with ja and ta as well, eg:

ja: [start..end] -> `<stdout>`
ta: data-type [start..end] -> `<stdout>`

You can also inline arrays with the %[] syntax, eg:

%[start..end]

Examples

» a: [a..c]
a
b
c

» a: [c..a]
c
b
a

See Also

  • Decimal Ranges: Create arrays of decimal integers
  • Non-Decimal Ranges: Create arrays of integers from non-decimal number bases
  • [[ (element): Outputs an element from a nested structure
  • [ (index): Outputs an element from an array, map or table
  • [ (range) : Outputs a ranged subset of data from STDIN
  • a (mkarray): A sophisticated yet simple way to build an array or list
  • count: Count items in a map, list or array
  • ja (mkarray): A sophisticated yet simply way to build a JSON array
  • ta (mkarray): A sophisticated yet simple way to build an array of a user defined data-type
Last update:
Contributors: Olivier Refalo