A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 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