Boolean
From Erights
(Redirected from True)
The Boolean type has exactly two members, false and true. All three names are in the universal scope.
Contents |
[edit]
Protocol
[edit]
pick/2
pick(t, f) :any
false.pick(t, f) returns f; true.pick(t, f) returns t.
[edit]
not/0
not() :Boolean
Boolean negation.
[edit]
or/1
or(other :Boolean) :Boolean
Boolean or. The argument is coerced to a boolean.
[edit]
and/1
and(other :Boolean) :Boolean
Boolean and. The argument is coerced to a boolean.
[edit]
xor/1
xor(other :Boolean) :Boolean
Boolean exclusive or. The argument is coerced to a boolean.
[edit]
op__cmp/1
Comparison with other Booleans. See Message op__cmp.
