7 lines
177 B
Text
7 lines
177 B
Text
@(1..7)->combinations(3, {|*a|
|
|
a.sum == 12 || next
|
|
a.permutations {|*b|
|
|
b[0].is_even || next
|
|
say (%w(police fire sanitation) ~Z b -> join(" "))
|
|
}
|
|
})
|