Module citadel::prelude [] [src]

Functions which are universal to citadel go in prelude, so that they may be included in further submodules without causing cross-depdency between branches of equal order.

Functions

collect_as_vector

Collects a slice (determined by the supplied bounds) as a vector, cloning the values.

drop_break

Iterate over a list of items, returning the remaining items after a predicate yields FALSE.

filter_break

Filters a list, ceasing to collect once a predicate returns FALSE.