diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 14:52:59 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 14:52:59 -0400 |
| commit | 4043a99e0df9fab6791c485721c0046971754175 (patch) | |
| tree | 5e9c966ecf315be98bd292d6d39511d6c0447ee5 /test/reductions.tm | |
| parent | 2bb2ff871fa1761478442bec5f6a32c9428360a1 (diff) | |
Expand reducers so they support stuff like `(+.abs(): nums)` and
`(==.length: texts)`
Diffstat (limited to 'test/reductions.tm')
| -rw-r--r-- | test/reductions.tm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/reductions.tm b/test/reductions.tm index bd74f306..c56c7d09 100644 --- a/test/reductions.tm +++ b/test/reductions.tm @@ -42,3 +42,13 @@ func main(): >> (<=: [5, 4, 3, 2, 1])! = no + + >> (==: ["x", "y", "z"]) + = no + >> (==.length: ["x", "y", "z"]) + = yes + >> (+.length: ["x", "xy", "xyz"]) + = 6 + + >> (+.abs(): [1, 2, -3]) + = 6 |
