Element - P
- Strip / Minimums-by
Characters:
P
Description
Remove the set of elements in b from both ends of a / Minimums-by
Overloads
any-any
-a.strip(b)
any-fun
-all elements in a where the result of b(x) is lowest
Examples
⟨1|2|3|4|5|4|3|2|1⟩ ⟨1|2⟩ P
=⟨3|4|5|4|3⟩
⟨1|2|3|4|5|6|7|8|2⟩ ⟨1|2⟩ P
=⟨3|4|5|6|7|8⟩
⟨0|0|0|0|0|2|3|0|9|0|0|0|0|0⟩ 0 P
=⟨2|3|0|9⟩
` Hello, World! ` ` ` P
=`Hello, World!`
1213121 1 P
=21312
1213121 `1` P
=21312
`1213121` 1 P
=`21312`