Cannot represent sets in kirin. This is useful for many things, such as comparing sets and other unordered collections of elements. The specific use case is for a switch statement:
if {ind1, ind2} == {0, 1}:
# Do this
elif {ind1, ind2} == {0, 2}:
# Do that
elif {ind1, ind2} == {1, 2}:
# Do the other thing
else:
raise #659
This can be overcome right now by (ind1, ind2)==(0,1) or (ind1, ind2)==(1,0) but this gets tiresome for large sets.
Cannot represent sets in kirin. This is useful for many things, such as comparing sets and other unordered collections of elements. The specific use case is for a switch statement:
This can be overcome right now by
(ind1, ind2)==(0,1) or (ind1, ind2)==(1,0)but this gets tiresome for large sets.