Skip to content
Snippets Groups Projects
Commit 1228f07d authored by nanocryk's avatar nanocryk
Browse files

map_insert function

parent 912c3df7
No related branches found
No related tags found
1 merge request!6WIP: RFC 5 : New Scalable Blockchain Protocol
...@@ -527,7 +527,6 @@ grp 2 ...@@ -527,7 +527,6 @@ grp 2
> new system functions via soft-forks. > new system functions via soft-forks.
> TODO Token data fetching > TODO Token data fetching
> TODO More operators for arrays and values (byte arrays)
#### Some functions of a "standard library" #### Some functions of a "standard library"
...@@ -547,4 +546,11 @@ sum array = fold array 0 sum_step ...@@ -547,4 +546,11 @@ sum array = fold array 0 sum_step
> TODO : map_insert allowing to map multiple outputs for 1 input. > TODO : map_insert allowing to map multiple outputs for 1 input.
##### `map_insert :: (array :: (index) -> (item :: A)) -> (fun :: (item :: A) -> (array :: (index) -> (value :: B))) -> (array :: (index) -> (item :: B))`
```txt
-- each iteration can return an array of 0, 1 or more values which are merged together.
map_insert array fun = merge (map array fun)
```
#### Execution #### Execution
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment