Array
extension Array
extension Array: NodeRepresentable
-
Construct an Array of
Any
from the specifiedsequence
.Declaration
Swift
public static func construct_seq(from sequence: Node.Sequence) -> [Any]
Parameters
sequence
Sequence to convert to
Array<Any>
.Return Value
Array of
Any
. -
Construct an “O-map” (array of
(Any, Any)
tuples) from the specifiedsequence
.Declaration
Swift
public static func construct_omap(from sequence: Node.Sequence) -> [(Any, Any)]
Parameters
sequence
Sequence to convert to
Array<(Any, Any)>
.Return Value
Array of
(Any, Any)
tuples. -
Construct an array of
(Any, Any)
tuples from the specifiedsequence
.Declaration
Swift
public static func construct_pairs(from sequence: Node.Sequence) -> [(Any, Any)]
Parameters
sequence
Sequence to convert to
Array<(Any, Any)>
.Return Value
Array of
(Any, Any)
tuples.