| summaryrefslogtreecommitdiff | 
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2020-12-23 02:09:33 +0100 | 
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2020-12-23 02:09:33 +0100 | 
| commit | b5b30786abdb77dc0c1f9ed1be6d9c594b398b1a (patch) | |
| tree | 8fcf531cacc82dcb7f154465fedce7497a8dbe87 /content/fate_v1/instructions/collections/_index.md | |
| parent | 7272d83113545ec46b35ea440811dfc7da7634e1 (diff) | |
Adding some info on merge & parentheses.
Diffstat (limited to 'content/fate_v1/instructions/collections/_index.md')
| -rw-r--r-- | content/fate_v1/instructions/collections/_index.md | 17 | 
1 files changed, 17 insertions, 0 deletions
| diff --git a/content/fate_v1/instructions/collections/_index.md b/content/fate_v1/instructions/collections/_index.md index 41de4f8..5ecd3a0 100644 --- a/content/fate_v1/instructions/collections/_index.md +++ b/content/fate_v1/instructions/collections/_index.md @@ -71,3 +71,20 @@ Modifies `[X COLLECTION VAR]` so that only the elements for which  syntax, which adds those parameters at the end of the `(indexed_filter! ...)`  call.  Note that the variable shorthand cannot be used for these extra  parameters. + +### MERGE COLLECTIONS +{{< fatecode >}}(merge! [LAMBDA Y (X Y)] [X COLLECTION] [Y COLLECTION VAR]){{< /fatecode >}} +{{< fatecode >}}(merge! [LAMBDA Y (X Y Z0 ... ZN)] [X COLLECTION] [Y COLLECTION VAR] [Z0 COMPUTATION*] ... [ZN COMPUTATION*]){{< /fatecode >}} + + +### SAFE-MERGE COLLECTIONS +{{< fatecode >}}(safe_merge! [LAMBDA Y (X Y)] [X COMPUTATION*] [X COLLECTION] [Y COMPUTATION*] [Y COLLECTION VAR]){{< /fatecode >}} +{{< fatecode >}}(safe_merge! [LAMBDA Y (X Y Z0 ... ZN)] [X COLLECTION] [X COMPUTATION*] [Y COMPUTATION*] [Y COLLECTION VAR] [Z0 COMPUTATION*] ... [ZN COMPUTATION*]){{< /fatecode >}} + +### MERGE COLLECTIONS (INDEXED) +{{< fatecode >}}(indexed_merge! [LAMBDA Y (INT X Y)] [X COLLECTION] [Y COLLECTION VAR]){{< /fatecode >}} +{{< fatecode >}}(indexed_merge! [LAMBDA Y (INT X Y Z0 ... ZN)] [X COLLECTION] [Y COLLECTION VAR] [Z0 COMPUTATION*] ... [ZN COMPUTATION*]){{< /fatecode >}} + +### SAFE-MERGE COLLECTIONS (INDEXED) +{{< fatecode >}}(safe_indexed_merge! [LAMBDA Y (INT X INT Y)] [X COMPUTATION*] [X COLLECTION] [Y COMPUTATION*] [Y COLLECTION VAR]){{< /fatecode >}} +{{< fatecode >}}(safe_indexed_merge! [LAMBDA Y (INT X INT Y Z0 ... ZN)] [X COMPUTATION*] [X COLLECTION] [Y COMPUTATION*] [Y COLLECTION VAR] [Z0 COMPUTATION*] ... [ZN COMPUTATION*]){{< /fatecode >}} | 


