yasl icon indicating copy to clipboard operation
yasl copied to clipboard

Fix handling of variables inside comprehensions

Open CoffeeTableEspresso opened this issue 3 years ago • 0 comments

Currently, the comprehension assumes it is the only thing on the stack, which may not be correct:

const x = [ 1, 2, 3, 4, 45, [60] ]

echo [ .a, .b, .c ] + [ x for x <- x ]
# incorrectly prints [60, 1, 2, 3, 4, 45, [60]]

CoffeeTableEspresso avatar Feb 21 '22 07:02 CoffeeTableEspresso