There was an error while loading. Please reload this page.
Normal member access is done with the dot . operator:
.
joe = { name = 'Joe' } joe.name == 'Joe'
To map an array of objects to an array of their members, use the *. operator:
*.
joe = {name = 'Joe'} jenny = {name = 'Jenny'} john = {name = 'John'} contacts = [joe, jenny, john] contacts*.name == ['Joe', 'John', 'Jenny']
To return the member if the object is not nil, or otherwise to return nil, use the ?. operator:
?.
joe = {name = 'Joe'} nobody = nil joe?.name == 'Joe' nobody?.name == nil