Types

Bool

Boolean type. The only instances are true and false

Constructors

Bool(x:Any)
Convert to Bool
Bool(al:ArrLike)
Call Bool() on the underlying array.
Bool(hl:HashLike)
Bool(fb:FullBox)
Always true
Bool(eb:EmptyBox)
Always false
Bool(d:ArrDiff)
Whether there is a difference
Bool(d:HashDiff)
Whether there is a difference
Bool(p:Path)
Checks whether the path is accessible using access(2) and F_OK.
Bool(p:Process)
Wait for process to finish and see whether exit code is 0
Bool(my:MatchY)
Bool(my:MatchN)
Bool(i:ConstIter)
Bool(i:RangeIter)
Bool(i:ArrIter)
Check whether there are more array elements to iterate over. true: next() will return next element. false: next() will throw NoNext
Bool(i:HashIter)
Bool(t:Table)

Methods

==(a:Bool, b:Bool)
Compare booleans
assert(condition:Bool, msg:Str)
Throws AssertFail with givens message if condition is false
assert(condition:Bool)
Throws AssertFail if condition is false
code(b:Bool)
Diff(a:Arr, b:Arr, full:Bool=false)
Compare arrays. Warning: Hash is used so internal Hash keys comparison is used, not ==
Diff(a:Arr, b:Arr, full:Bool=false)
Diff(a:Arr, b:Arr, full:Bool=false)
Int(b:Bool)
Convert Bool to int.
not(x:Bool)
Invert boolean
retry(times:Int=60, sleep:Any=1, logger:Fun=(a function), success_predicate:Any=(a function), catch_exceptions:Bool=true, title:Any=<retry>, progress_cb:Fun=(a function), success_cb:Fun=(a function), fail_cb:Any=null, body:Fun=(a function))
Retry. Executes given "body" "times" times. Throws RetryFail if all calls fail and fail_cb is not provided.
Str(b:Bool)
to_exit_code(b:Bool)
~~(s:Str, r:RegExp, collect_unmatched:Bool=false)
Find all non-overlapping matches of regular expression in a string.