struct
Creates a structure from a sequence of members.
Syntax
-
struct([m1[, m2[, ...]]])-
m1, m2, ...are structure members
-
Description
If m1, m2, ... are structures of type StructMember, then struct([m1[, m2[, ...]]]) returns the structure having m1, m2, ... as its members.
The members can be conveniently created using the : operator.
Examples
struct("FirstName": "Albus", "LastName": "Dumbledore", "Age": 105)
FirstName: Albus LastName: Dumbledore Age: 105
See also
-
Type conversion functions (list)