Mapped List (Expression) — skLambda
Addon: skLambda · Category: Expression · Since: 1.0.0
Syntax
%objects% mapped (with|using|through) %object%Description
Transforms every element of a list with a one-argument value lambda, returning a new list the same size. The lambda is invoked once per element, with the element as its single argument; its return value takes that element's place. Elements whose lambda returns nothing are dropped.
Examples
# {_double} = lambda (n: number) -> number: return {_n} * 2
set {_doubled::*} to {_nums::*} mapped with {_double}