Skip to content
Turtle Kitty edited this page Aug 9, 2015 · 4 revisions

bool

A bool is either true or false.

predicate

(bool? x)

(bool? true) -> true
(bool? false) -> true
(bool? null) -> false
(bool? "true") -> false
(bool? 0) -> false

messages

x.type -> bool

x.to-bool -> x

x.to-text -> "true" or "false"

x.view -> x

x.not -> (not x)

Clone this wiki locally