Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Nested-function/Sidef/nested-function.sidef
Normal file
11
Task/Nested-function/Sidef/nested-function.sidef
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
func make_list(separator = ') ') {
|
||||
|
||||
var count = 1
|
||||
func make_item(item) {
|
||||
[count++, separator, item].join
|
||||
}
|
||||
|
||||
<first second third>.map(make_item).join("\n")
|
||||
}
|
||||
|
||||
say make_list('. ')
|
||||
Loading…
Add table
Add a link
Reference in a new issue