Restricted
An anonymous restriction of coll to the elements satisfying predicate, delegating to Filter so the base collection stays lazy — the mechanism every named restriction (Derangements, OddPartitions, …) is built on, minus the name.
Restricted(coll, predicate)coll filtered to the elements satisfying predicate, kept lazy through Filter.Typed signatures
| Type | Package | Applies |
|---|---|---|
(collection, function) -> collection | combinatorics | always |
Examples
About
| Examples | 1 |
|---|
See also: Filter