Arrays

object Arrays

Container object for utility functions related to Arrays.

Functions

Link copied to clipboard
fun <P : Position<P>> Array<out Number>.toPositions(environment: Environment<*, P>): List<P>

Converts an array of numbers representing positions to an actual list of positions. E.g. the array 2,3,4,5 in a bidimensional environment would be transformed into a list containing positions (2,3) and (4,5).