Style choice: I had been writing methods with spaces before the arguments, but that doesn't seem to be the case in the documentation. This is just to keep things consistent
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
||||
class Sequence {
|
||||
map (f) {
|
||||
map(f) {
|
||||
var result = []
|
||||
for (element in this) {
|
||||
result.add(f.call(element))
|
||||
@@ -7,7 +7,7 @@ class Sequence {
|
||||
return result
|
||||
}
|
||||
|
||||
where (f) {
|
||||
where(f) {
|
||||
var result = []
|
||||
for (element in this) {
|
||||
if (f.call(element)) result.add(element)
|
||||
|
||||
Reference in New Issue
Block a user