From 4043a99e0df9fab6791c485721c0046971754175 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 6 Apr 2025 14:52:59 -0400 Subject: Expand reducers so they support stuff like `(+.abs(): nums)` and `(==.length: texts)` --- test/reductions.tm | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test') 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 -- cgit v1.2.3