diff options
| author | Shinya Sato <shinnya.sato@gmail.com> | 2022-12-29 23:41:35 +0900 |
|---|---|---|
| committer | Shinya Sato <shinnya.sato@gmail.com> | 2022-12-29 23:41:35 +0900 |
| commit | 1a2a94164334c9c73037edc77ea55aa7ddecc27a (patch) | |
| tree | 2ed686f958c2b9f08ada7cdad30e8fdc3f2a0f12 /sample/map.in | |
| parent | 8fdc0d64db6a9eb397afe829a0a26290ef368b53 (diff) | |
| parent | 46d0da22df319007f6988734bcfe6a7ec0b96c92 (diff) | |
| download | inpla-1a2a94164334c9c73037edc77ea55aa7ddecc27a.tar.gz inpla-1a2a94164334c9c73037edc77ea55aa7ddecc27a.zip | |
Merge branch 'develop'
Diffstat (limited to 'sample/map.in')
| -rw-r--r-- | sample/map.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sample/map.in b/sample/map.in index 7997a44..c96daae 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 +// --- It seems the simplest to read. +r5 << map(%inc, [100,200,300]); +r5; // r5 ->[101,201,301] + +r6 << map(%subPair, [(10,2), (30,13)]); +r6; // r6 ->[8,17] + |
