Other operators

You’ve seen most of the remaining operators in other examples:

OperatorNameMeaning
()Function applicationRepresents a function call
[]List accessRefers to the value at the specified index in the list
.Member accessRefers to a property of an expression; example: foo.bar selects property bar from expression foo
?.Conditional member accessLike ., but the leftmost operand can be null; example: foo?.bar selects property bar from expression foo unless foo is null (in which case the value of foo?.bar is null)

For more information about the ., ?., and .. operators, seeClasses.