marianoguerra/efene — Issue #46: Ifene lambda-style function doesn't parse when final argument
Author: DavidMikeSimon
Created: 2011-12-07 02:10:01+00:00
State: open

In Ifene, I can use indentation to specify the bounds of an anonymous function, like this:

L = lists.map(fn(V)
V*3
, [1,2,3,4])

However, I get a syntax error if I try to do this for the last argument of a function, as when using the Efene lst module:

L = lst.map([1,2,3,4], fn(V)
V*3
)

Strangely, the equivalent Efene code does work; it's only in Ifene that the problem occurs.