Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
doc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
nodes
common
doc
Commits
1228f07d
Commit
1228f07d
authored
7 years ago
by
nanocryk
Browse files
Options
Downloads
Patches
Plain Diff
map_insert function
parent
912c3df7
No related branches found
No related tags found
1 merge request
!6
WIP: RFC 5 : New Scalable Blockchain Protocol
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
rfc/0005 New Scalable Protocol to power Duniter.md
+7
-1
7 additions, 1 deletion
rfc/0005 New Scalable Protocol to power Duniter.md
with
7 additions
and
1 deletion
rfc/0005 New Scalable Protocol to power Duniter.md
+
7
−
1
View file @
1228f07d
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment