Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import json
- import intsets
- var cache = initIntSet()
- for i in 0..100000:
- var keyEntryHash=hash(%*{"key2":i})
- assert(cache.contains(keyEntryHash)==false,"Key value not unique")
- cache.incl(keyEntryHash)
- echo i
- echo "Done"
Advertisement
Add Comment
Please, Sign In to add comment