Skip to content

iteration

pannous edited this page Sep 19, 2021 · 4 revisions

Iteration is often implicit since all functions are automatically broadcasting on lists and pair values:

square number=number*number
square [1 2 3] == [1 4 9]

square [a:1 b:2 c:3] == [a:1 b:4 c:9]

delete file = run `rm $file.name`
delete files in ls /   # 🧐

The all keyword takes a block making it a functor similar to map: all files{delete it}

It should be superfluous in may situations:

print characters in "hello"

open questions

Home

Philosophy

data & code blocks

features

inventions

evaluation

keywords

iteration

tasks

examples

todo : bad ideas and open questions

⚠️ specification and progress are out of sync

Clone this wiki locally