Terminology
Io> "abc" alignCenter(10, "-")
==> ---abc----
Io> "abc" alignCenter(10, "-=")
==> -=-abc-=-=
Io> "abc" alignLeft(10, "+")
==> abc+++++++
Io> "abc" alignLeft(10, "-=")
==> abc-=-=-=-
Io> "abc" alignRight(10, "-")
==> -------abc
Io> "abc" alignRight(10, "-=")
==> -=-=-=-abc
list(memberType1, memberName1, memberType2, memberName2, ...)
Member types include:
int8, int16, int32, int64 uint8, uint16, uint32, uint64 float32, float64Example:
pointObject := structPointSeq asStruct(list("float32", "x", "float32", "y"))
The output pointObject would contain x and y slots with Number objects.
aSequence foreach(i, v, writeln("value at index ", i, " is ", v))
aSequence foreach(v, writeln("value ", v))
"Keep the tail" lstrip(" eKp")
==> "the tail"
Io> "ABC" asMutable makeFirstCharacterLowercase ==> aBC
Io> "abc" asMutable makeFirstCharacterUppercase ==> Abc
"Cut the tail off" rstrip(" afilot")
==> "Cut the"
"abc" size == 3
"a b c d" split == list("a", "b", "c", "d") "a*b*c*d"
split("*") == list("a", "b", "c", "d") "a*b|c,d" split("*", "|", ",") ==
list("a", "b", "c", "d") "a b c d" split == list("a", "", "", "", "b",
"", "", "c", "", "d")
"a b c d" splitNoEmpties => list("a", "b", "c", "d")
"a***b**c*d" splitNoEmpties("*") => list("a", "b", "c", "d")
"a***b||c,d" splitNoEmpties("*", "|", ",") => list("a", "b", "c", "d")
" Trim this string \r\n" strip ==> "Trim this string"
list(memberType1, memberName1, memberType2, memberName2, ...)
Member types include:
int8, int16, int32, int64 uint8, uint16, uint32, uint64 float32, float64Example:
pointStructSeq := Sequence withStruct(list("float32", 1.2, "float32", 3.5))
The output pointStructSeq would contain 2 raw 32 bit floats.