Call a function: Difference between revisions
Content added Content deleted
Langurmonkey (talk | contribs) |
Langurmonkey (talk | contribs) |
||
Line 3,692: | Line 3,692: | ||
<syntaxhighlight lang="langur">val .sum = foldfrom( |
<syntaxhighlight lang="langur">val .sum = foldfrom( |
||
fn(.sum, .i, .c) .sum + |
fn(.sum, .i, .c) .sum + number(.c, 36) * .weight[.i], |
||
0, |
0, |
||
pseries len .code, |
pseries len .code, |
||
split |
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> |