Add set index in list, and update lib+examples+tests
This commit is contained in:
parent
09ac16a42d
commit
3bccc227ba
12 changed files with 117 additions and 60 deletions
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
fn<T, R> ([T]) map(f: fn(T) -> R) -> [R] {
|
||||
fn map<T, R>(list: [T], f: fn(T) -> R) -> [R] {
|
||||
out := []
|
||||
|
||||
for v in list.iter() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue