Data update
This commit is contained in:
parent
ed705008a8
commit
0df55f9f24
2196 changed files with 32999 additions and 3075 deletions
|
|
@ -7,7 +7,7 @@ public program()
|
|||
{
|
||||
auto array := new int[]{1,2,3,4,5};
|
||||
|
||||
var evens := array.filterBy:(n => n.mod:2 == 0).toArray();
|
||||
var evens := array.filterBy::(n => n.mod(2) == 0).toArray();
|
||||
|
||||
evens.forEach:printingLn
|
||||
evens.forEach(printingLn)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,6 +8,6 @@ public program()
|
|||
int[] array := new int[]{1,2,3,4,5};
|
||||
|
||||
array
|
||||
.filterBy:(int n => n.mod:2 == 0)
|
||||
.forEach:(int i){ console.printLine(i) }
|
||||
.filterBy::(int n => n.mod(2) == 0)
|
||||
.forEach::(int i){ console.printLine(i) }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
val .arr = series 7
|
||||
val .list = series 7
|
||||
|
||||
writeln " array: ", .arr
|
||||
writeln "filtered: ", filter f{div 2}, .arr
|
||||
writeln " list: ", .list
|
||||
writeln "filtered: ", filter f{div 2}, .list
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue