Set, the card game: Difference between revisions
Content added Content deleted
m (→{{header|Julia}}: iterator) |
|||
Line 74: | Line 74: | ||
""" Return a vector of the sets in the vector of SetCards """ |
""" Return a vector of the sets in the vector of SetCards """ |
||
function process_deal(cards::Vector{SetCard}) |
function process_deal(cards::Vector{SetCard}) |
||
return Iterators.filter(combo -> allsameordifferent(combo...), |
return Iterators.filter(combo -> allsameordifferent(combo...), combinations(cards, 3)) |
||
end |
end |
||