Advanced Computing Environment
brix-os project page
A single underscore character represents a void element with various uses throughout the language.
Used as the value to declare uninitialized slots in interfaces.
Used to discard elements during a destructuring assignment.
slot a:Int = _
// grab first and third elements, ignore second
(x, _, y) = 1..3// grab first and second elements, ignore rest
(x, y, _) = 1..100// grab first and third, ignore second and rest
(x, _, y, _) = 1..100
Copyright © 1995-2017 Brand Huntsman