Data update

This commit is contained in:
Ingy döt Net 2024-03-06 22:25:12 -08:00
parent ed705008a8
commit 0df55f9f24
2196 changed files with 32999 additions and 3075 deletions

View file

@ -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)
}

View file

@ -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) }
}

View file

@ -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