aboutsummaryrefslogtreecommitdiff
path: root/sample/map.in
diff options
context:
space:
mode:
authorShinya Sato <shinnya.sato@gmail.com>2022-12-29 23:37:35 +0900
committerShinya Sato <shinnya.sato@gmail.com>2022-12-29 23:37:35 +0900
commit984328ee471ecc8e2689348a7d60ef2bed18159c (patch)
tree547f6a2e5946fa2d699b4ec945661a7ab0fb6932 /sample/map.in
parent47000121994e8f10a3b89691856d99e917e7226d (diff)
downloadinpla-984328ee471ecc8e2689348a7d60ef2bed18159c.tar.gz
inpla-984328ee471ecc8e2689348a7d60ef2bed18159c.zip
v10.0.2
Diffstat (limited to 'sample/map.in')
-rw-r--r--sample/map.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/sample/map.in b/sample/map.in
index 7997a44..143f560 100644
--- a/sample/map.in
+++ b/sample/map.in
@@ -37,3 +37,13 @@ r3; // r3 ->[2,3,4]
map(r4, %subPair) ~ [(10,2), (30,13)];
r4; // r4 ->[8,17]
+
+
+// --- map application with `<<' abbriviation also
+// --- This seems most easily readable.
+r5 << map(%inc, [100,200,300]);
+r5; // r5 ->[101,201,301]
+
+r6 << map(%subPair, [(10,2), (30,13)]);
+r6; // r6 ->[8,17]
+