RosettaCodeData/Task/Symmetric-difference/Crystal/symmetric-difference.cr

5 lines
95 B
Crystal
Raw Permalink Normal View History

2026-04-30 12:34:36 -04:00
A = Set{:John, :Bob, :Mary, :Serena}
B = Set{:Jim, :Mary, :John, :Bob}
p! A, B, A-B, B-A, A^B