September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
9
Task/Collections/Setl4/collections-1.setl4
Normal file
9
Task/Collections/Setl4/collections-1.setl4
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
set = new('set 5 10 15 20 25 25')
|
||||
add(set,30)
|
||||
show(set)
|
||||
|
||||
show.eval('member(set,5)')
|
||||
show.eval('member(set,6)')
|
||||
|
||||
show.eval("exists(set,'eq(this,10)')")
|
||||
show.eval("forall(set,'eq(this,40)')")
|
||||
4
Task/Collections/Setl4/collections-2.setl4
Normal file
4
Task/Collections/Setl4/collections-2.setl4
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
iter = new('iter 1 10 2')
|
||||
show(iter)
|
||||
show.eval("eq(set.size(iter),5)")
|
||||
show.eval('member(iter,5)')
|
||||
7
Task/Collections/Setl4/collections-3.setl4
Normal file
7
Task/Collections/Setl4/collections-3.setl4
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
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)')")
|
||||
Loading…
Add table
Add a link
Reference in a new issue