-
-
Notifications
You must be signed in to change notification settings - Fork 9
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 String
s.
-
func toString(array <$T> Array, separator = ", ", beginning = "[", ending String = "]", separator_after_last bool = false, surrounding String = "") String
-
func toString(array <String> Array, separator = ", ", beginning = "[", ending String = "]", separator_after_last bool = false) String
Override to convert a
<String> Array
to aString
. -
func toString(array <*ubyte> Array, separator = ", ", beginning = "[", ending String = "]", separator_after_last bool = false) String
Override to convert a
<*ubyte> Array
to aString
. -
func toString(pointer *$T, length usize) String
Converts a primitive array to a
String
. -
func toString(fixed_array $#N $T) String
Converts a fixed array to a
String
.
-
func toString(this *<$T> Array, separator = ", ", beginning = "[", ending String = "]", separator_after_last bool = false, surrounding String = "") String
-
func toString(this *<String> Array, separator = ", ", beginning = "[", ending String = "]", separator_after_last bool = false) String
(Method) Override to convert a
<String> Array
to aString
. -
func toString(this *<*ubyte> Array, separator = ", ", beginning = "[", ending String = "]", separator_after_last bool = false) String
(Method) Override to convert a
<*ubyte> Array
to aString
. -
func asList(this *<$T> Array) <$T> List
Converts an
Array
to aList
that references the data of the array. -
func map(this *<$T> Array, function func($~T) $S) <$S> List
Applies
function
to every item in an array to form a list. -
func map(this *<$T> Array, function func(*$T) $S) <$S> List
Applies
function
to every item in an array to form a list.