RosettaCodeData/Task/Collections/Setl4/collections-3.setl4

8 lines
245 B
Text
Raw Permalink Normal View History

2017-09-23 10:01:46 +02:00
map = new('map one:1 two:2 ten:10 forty:40 hundred:100 thousand:1000')
show(map)
show.eval("eq(get(map,'one'),1)")
show.eval("eq(get(map,'one'),6)")
show.eval("exists(map,'eq(get(map,this),2)')")
show.eval("forall(map,'eq(get(map,this),2)')")