From 0b7a0dd043a4c7ccfc924d618508d1edc0115e2f Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 2 Nov 2024 20:22:19 -0400 Subject: Change reducers to use (OP: ...) syntax and return an optional value --- test/integers.tm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/integers.tm') diff --git a/test/integers.tm b/test/integers.tm index eb0c3fed..8d34dfc0 100644 --- a/test/integers.tm +++ b/test/integers.tm @@ -89,7 +89,7 @@ func main(): = 11 >> 11:prev_prime() = 7 - >> (and) p:is_prime() for p in [ + >> (and: p:is_prime() for p in [ 2, 3, 5, 7, 137372146048179869781170214707, 811418847921670560768224995279, @@ -101,15 +101,15 @@ func main(): 548605069630614185274710840981, 121475876690852432982324195553, 771958616175795150904761471637, - ] + ])! = yes - >> (or) p:is_prime() for p in [ + >> (or: p:is_prime() for p in [ -1, 0, 1, 4, 6, 137372146048179869781170214707*2, 811418847921670560768224995279*3, 292590241572454328697048860273*754893741683930091960170890717, - ] + ])! = no >> Int(yes) -- cgit v1.2.3