Element - F
- Filter
Characters:
F
Description
Filter a list by another list or function.
Overloads
any-fun
-filter(b,a) (filter a by the ones that b returns a truthy result for)
any-any
-remove elements of a that are in b
Examples
⟨1|2|3|4|5|6⟩ 5 F
=⟨1|2|3|4|6⟩
⟨1|2|3|4|5|6⟩ 7 F
=⟨1|2|3|4|5|6⟩
`abcdef` `b` F
=`acdef`
⟨1|2|3⟩ ⟨2|4|6⟩ F
=⟨1|3⟩
`abcdef` `daffodil` F
=`bce`
`12345` ⟨`2`|`4`|`5`⟩ F
=`13`
⟨`1`|`2`|`3`|`4`|`5`⟩ `245` F
=⟨`1`|`3`⟩
123 246 F
=13