diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-11-02 20:22:19 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-11-02 20:22:19 -0400 |
| commit | 0b7a0dd043a4c7ccfc924d618508d1edc0115e2f (patch) | |
| tree | 6e1942840ab7e1e10bed111d8d5a012eacdf8b9b /test/integers.tm | |
| parent | 985011aed89706e9a4b06e6c6f3239d53ac8e6e8 (diff) | |
Change reducers to use (OP: ...) syntax and return an optional value
Diffstat (limited to 'test/integers.tm')
| -rw-r--r-- | test/integers.tm | 8 |
1 files changed, 4 insertions, 4 deletions
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) |
