Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
2
Task/Filter/E/filter-1.e
Normal file
2
Task/Filter/E/filter-1.e
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
pragma.enable("accumulator")
|
||||
accum [] for x ? (x %% 2 <=> 0) in [1,2,3,4,5,6,7,8,9,10] { _.with(x) }
|
||||
5
Task/Filter/E/filter-2.e
Normal file
5
Task/Filter/E/filter-2.e
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
var result := []
|
||||
for x ? (x %% 2 <=> 0) in [1,2,3,4,5,6,7,8,9,10] {
|
||||
result with= x
|
||||
}
|
||||
result
|
||||
2
Task/Filter/E/filter-3.e
Normal file
2
Task/Filter/E/filter-3.e
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
def makeSeries := <elang:control.makeSeries>
|
||||
makeSeries([1,2,3,4,5,6,7,8,9,10]).filter(fn x,_{x %% 2 <=> 0}).asList()
|
||||
Loading…
Add table
Add a link
Reference in a new issue