Types
Boolean type. The only instances are true and false
Constructors
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(i:ArrIter)
Check whether there are more array elements to iterate over.
true: next() will return next element. false: next() will throw NoNext
Methods
assert(condition:Bool, msg:Str)
Throws AssertFail with givens message if condition is false
assert(condition:Bool)
Throws AssertFail if condition is false
Diff(a:Arr, b:Arr, full:Bool=false)
Compare arrays. Warning: Hash is used so internal Hash keys comparison is used, not ==
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.
~~(s:Str, r:RegExp, collect_unmatched:Bool=false)
Find all non-overlapping matches of regular expression in a string.