Elouin has quit [Quit: So long and thanks for all the fish!]
Elouin has joined #crystal-lang
<raz>
the last 3% are always the hardest
<FromGitter>
<silentworks> Am I correct in thinking that Crystal can't do a difference between two string arrays? I just tried `["G","G","A"] - ["A", "G", "G"]` and got an empty array as the result
<FromGitter>
<Blacksmoke16> what would you expect it to return?
<FromGitter>
<silentworks> an array with the difference `["G", "G"]`
<FromGitter>
<Blacksmoke16> how you figure? Isn't an array difference elements that are in array a but not array b?
<FromGitter>
<Blacksmoke16> so since both arrays have the same elements (in a diff order) the difference is empty
Human_G33k has joined #crystal-lang
<FromGitter>
<silentworks> oh damn, you are correct
<FromGitter>
<Blacksmoke16> 👍
<FromGitter>
<silentworks> But note that even of I were to change one of the array to have completely different character it still results in an empty array
<FromGitter>
<silentworks> let me setup something in the playground