Skip to content

library__pred

Robert Bossy edited this page Jul 27, 2017 · 1 revision

#pred

Synopsis

Functons

pred:all(c, pred)

Evaluates c as a list of elements, then for each element evaluates pred as a boolean. Returns true if all evaluate as true.

pred:any(c, pred)

Evaluates c as a list of elements, then for each element evaluates pred as a boolean. Returns true if at least one evaluates as true.

pred:enum-while:varName(start, end, expr, condition)

Evaluates start and end as integers, then assigns to varName each value between start (inclusive) and end (exclusive) and evaluates expr as a list of elements. Before evaluating expr, evaluates condition as a boolean. If condition is false, then stops iterating the list. Returns all elements in a single list.

pred:enum-while:varName(start, expr, condition)

pred:enumerate:varName(start, end, expr)

Evaluates start and end as integers, then assigns to varName each value between start (inclusive) and end (exclusive) and evaluates expr as a list of elements. Returns all elements in a single list.

Clone this wiki locally