Filter
Generated from the engine's own definition: compute-engine's symbol, which we neither extend nor document by hand.
Return the elements of the collection for which the predicate function returns True. Equivalent to [x for x in xs if p(x)].
✓ checked against that system · ! checked, with disagreements (hover a chip)Fungrim entryWolfram Language
Select✓Filter(collection<T>, predicate: (T) any -> boolean) -> collection where Tas compute-engine declares itFilter(predicate)the operator form, .Typed signatures
| Type | Package | Applies |
|---|---|---|
(any) -> any | combinatoricsreplaces compute-engine | always |
(collection<T>, predicate: (T) any -> boolean) -> collection where T | compute-engine | always |
Examples
Scope #
About
| Examples | 8 |
|---|---|
| Checked against | Wolfram Language 8 agree |
| Crosswalk | Fungrim entry ×13Wolfram Language |
Implementation
mapped
mathlib4packages/oracle/src/mappings.tsThe elements where the predicate holds; a predicate that is not a Bool or decidable Prop fails to elaborate.