Algosim documentation: :

: (colon)

Creates a structure member.



If name is a valid identifier as a string and value any object, then name: value returns the StructMember structure with name and value as its values. This structure represents a structure member and is typically passed to the struct function.

This operator is implemented by the MakeMember function.


struct("FirstName": "Albus", "LastName": "Dumbledore", "Age": 105)
FirstName: Albus
LastName: Dumbledore
Age: 105

See also