Call a function: Difference between revisions

Content added Content deleted
Line 3,692: Line 3,692:


<syntaxhighlight lang="langur">val .sum = foldfrom(
<syntaxhighlight lang="langur">val .sum = foldfrom(
fn(.sum, .i, .c) .sum + toNumber(.c, 36) x .weight[.i],
fn(.sum, .i, .c) .sum + number(.c, 36) * .weight[.i],
0,
0,
pseries len .code,
pseries len .code,
split ZLS, .code,
split .code,
)
)
# split, pseries, and len using unbounded lists, ending before comma preceding line return</syntaxhighlight>
# split, pseries, and len using unbounded lists, ending before comma preceding line return</syntaxhighlight>