Element - øṖ
- String Partitions
Description
All partitions of a string/list
Overloads
any
-all_partitions(a)
Examples
`ab` øṖ
=⟨⟨`a`|`b`⟩|⟨`ab`⟩⟩
⟨1|2|3|4⟩ øṖ
=⟨⟨⟨1⟩|⟨2⟩|⟨3⟩|⟨4⟩⟩|⟨⟨1|2⟩|⟨3⟩|⟨4⟩⟩|⟨⟨1⟩|⟨2⟩|⟨3|4⟩⟩|⟨⟨1⟩|⟨2|3⟩|⟨4⟩⟩|⟨⟨1|2|3⟩|⟨4⟩⟩|⟨⟨1⟩|⟨2|3|4⟩⟩|⟨⟨1|2⟩|⟨3|4⟩⟩|⟨⟨1|2|3|4⟩⟩⟩
`abc` øṖ
=⟨⟨`a`|`b`|`c`⟩|⟨`ab`|`c`⟩|⟨`a`|`bc`⟩|⟨`abc`⟩⟩