September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
|
|
@ -3,7 +3,7 @@ func partitions({.is_empty}) { [[]] }
|
|||
|
||||
func part(s, args) {
|
||||
gather {
|
||||
s.combinations(args[0], { |c|
|
||||
s.combinations(args[0], { |*c|
|
||||
part(s - c, args.ft(1)).each{|r| take([c] + r) }
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue