Menu: Difference between revisions
→{{header|langur}}
Langurmonkey (talk | contribs) |
Langurmonkey (talk | contribs) |
||
Line 1,830:
<syntaxhighlight lang="langur">val .select = impure fn(.entries) {
if .entries is not list: throw "invalid args"
if
# print the menu
writeln join "\n", map(fn
val .idx = number read(
Line 1,848:
}
writeln .select(["fee fie", "eat pi", "huff and puff", "tick tock"])
</syntaxhighlight>
{{out}}
|