4 ms·
These objects can be inserted into a hash table, and are keyed by their semantic value, not the string: 1> (hash) #H(()) 2> *1 #H(()) 3> (set [*1 (ne
by kazinator 1y ago
These objects can be inserted into a hash table, and are keyed by their semantic value, not the string:
1> (hash)
#H(())
2> *1
#H(())
3> (set [*1 (new (app-ver "1.2.3.0004"))] 'mapped)
mapped
4> *1
#H(() (#S(app-ver str "1.2.3.0004" vec (1 2 3 4)) mapped))
5> [*1 (new (app-ver "1.2.3.4"))]
mapped
6> [*1 (new (app-ver "1.2.03.4"))]
mapped
7> [*1 (new (app-ver "1.2.02.4"))]
nil