Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
18
Task/Nested-function/Lambdatalk/nested-function.lambdatalk
Normal file
18
Task/Nested-function/Lambdatalk/nested-function.lambdatalk
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{def makeList
|
||||
|
||||
{def makeItem
|
||||
{lambda {:s :a :i}
|
||||
{div}{A.first {A.set! 0 {+ {A.first :a} 1} :a}}:s :i}}
|
||||
|
||||
{lambda {:s}
|
||||
{S.map {{lambda {:s :a :i} {makeItem :s :a :i}}
|
||||
:s {A.new 0}}
|
||||
first second third
|
||||
}}}
|
||||
-> makeList
|
||||
|
||||
{makeList .}
|
||||
->
|
||||
1. first
|
||||
2. second
|
||||
3. third
|
||||
Loading…
Add table
Add a link
Reference in a new issue