Skip to content

array_util

IsaacShelton edited this page Nov 13, 2022 · 6 revisions

array_util

2.7/array_util.adept defines several utilities for dealing with Array values and fixed array values.

It mainly defines several toString functions for converting arrays to Strings.

Functions

  • func toString(array <$T> Array, separator = ", ", beginning = "[", ending String = "]", separator_after_last bool = false, surrounding String = "") String

    Converts an Array to a String.

    [view src]

  • func toString(array <String> Array, separator = ", ", beginning = "[", ending String = "]", separator_after_last bool = false) String

    Override to convert a <String> Array to a String.

    [view src]

  • func toString(array <*ubyte> Array, separator = ", ", beginning = "[", ending String = "]", separator_after_last bool = false) String

    Override to convert a <*ubyte> Array to a String.

    [view src]

  • func toString(pointer *$T, length usize) String

    Converts a primitive array to a String.

    [view src]

  • func toString(fixed_array $#N $T) String

    Converts a fixed array to a String.

    [view src]

Methods

  • func toString(this *<$T> Array, separator = ", ", beginning = "[", ending String = "]", separator_after_last bool = false, surrounding String = "") String

    (Method) Converts an Array to a String.

    [view src]

  • func toString(this *<String> Array, separator = ", ", beginning = "[", ending String = "]", separator_after_last bool = false) String

    (Method) Override to convert a <String> Array to a String.

    [view src]

  • func toString(this *<*ubyte> Array, separator = ", ", beginning = "[", ending String = "]", separator_after_last bool = false) String

    (Method) Override to convert a <*ubyte> Array to a String.

    [view src]

  • func asList(this *<$T> Array) <$T> List

    Converts an Array to a List that references the data of the array.

    [view src]

  • func map(this *<$T> Array, function func($~T) $S) <$S> List

    Applies function to every item in an array to form a list.

    [view src]

  • func map(this *<$T> Array, function func(*$T) $S) <$S> List

    Applies function to every item in an array to form a list.

    [view src]

Clone this wiki locally