longArrayOf

fun longArrayOf(range: LongRange): LongArray

Return a long Array from long range.

Example:

longArrayOf(1..10L) // [1L, 2L, 3L, 4L, 5L, 6L, 7L, 8L, 9L, 10L]

Since

1.1.0

See also

LongArray
LongRange

fun longArrayOf(progression: LongProgression): LongArray

Return a long Array from long progression.

Example:

longArrayOf(1..10L step 2) // [1L, 3L, 5L, 7L, 9L]

Since

1.1.0

See also

LongArray
LongProgression