mirror of
https://github.com/aNNiMON/Own-Programming-Language-Tutorial.git
synced 2024-09-20 08:44:20 +03:00
Исправлены опечатки
This commit is contained in:
parent
135ecf8b7d
commit
53cfe5d1e1
@ -27,7 +27,7 @@ public final class functional_filter implements Function {
|
|||||||
return filterMap((MapValue) container, consumer);
|
return filterMap((MapValue) container, consumer);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new TypeException("Invalid first argument. Array or map exprected");
|
throw new TypeException("Invalid first argument. Array or map expected");
|
||||||
}
|
}
|
||||||
|
|
||||||
private Value filterArray(ArrayValue array, Function predicate) {
|
private Value filterArray(ArrayValue array, Function predicate) {
|
||||||
|
@ -31,6 +31,6 @@ public final class functional_foreach implements Function {
|
|||||||
}
|
}
|
||||||
return NumberValue.ZERO;
|
return NumberValue.ZERO;
|
||||||
}
|
}
|
||||||
throw new TypeException("Invalid first argument. Array or map exprected");
|
throw new TypeException("Invalid first argument. Array or map expected");
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -33,7 +33,7 @@ public final class functional_map implements Function {
|
|||||||
return mapMap((MapValue) container, keyMapper, valueMapper);
|
return mapMap((MapValue) container, keyMapper, valueMapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new TypeException("Invalid first argument. Array or map exprected");
|
throw new TypeException("Invalid first argument. Array or map expected");
|
||||||
}
|
}
|
||||||
|
|
||||||
private Value mapArray(ArrayValue array, Function mapper) {
|
private Value mapArray(ArrayValue array, Function mapper) {
|
||||||
|
@ -34,6 +34,6 @@ public final class functional_reduce implements Function {
|
|||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
throw new TypeException("Invalid first argument. Array or map exprected");
|
throw new TypeException("Invalid first argument. Array or map expected");
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user