1
0
Fork 0
mirror of https://github.com/Reuh/anselme.git synced 2025-10-27 16:49:31 +00:00
anselme/test/tests/for struct.ans

7 lines
205 B
Text

:s = { "a":"b", 6:"c", 98:5, true:3 }
:t = *s
/* struct iteration is non deterministic, too lazy to sort, so we check if we have 4 key that each appear at most once */
for(:k, s)
|{t!has(k)}|
t(k) = ()