Merge branch 'master' into 1.15
This commit is contained in:
commit
cc9cc17b27
1 file changed
+1
-1
@@ -1912,7 +1912,7 @@ public class Expression implements Cloneable
|
|||||||
// similar to map, but returns total number of successes
|
// similar to map, but returns total number of successes
|
||||||
// for(list, expr) => success_count
|
// for(list, expr) => success_count
|
||||||
// can be substituted for first and all, but first is more efficient and all doesn't require knowing list size
|
// can be substituted for first and all, but first is more efficient and all doesn't require knowing list size
|
||||||
addLazyFunction("for", -1, (c, t, lv) ->
|
addLazyFunction("for", 2, (c, t, lv) ->
|
||||||
{
|
{
|
||||||
Value rval= lv.get(0).evalValue(c);
|
Value rval= lv.get(0).evalValue(c);
|
||||||
if (!(rval instanceof AbstractListValue))
|
if (!(rval instanceof AbstractListValue))
|
||||||
|
|||||||
Reference in new issue
Block a user