Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pgujjula authored Apr 5, 2024
1 parent da25ee9 commit 34c70d4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ Gaussian integers, ordered by norm ([Wikipedia](https://en.wikipedia.org/wiki/Ga
zs :: [Int]
zs = 0 : concatMap (\i -> [i, -i]) [1..]

-- Uses more general `applyMergeBy` taking custom comparison function
gaussianInts :: [Complex Int]
gaussianInts = applyMergeBy (comparing (\a b -> a*a + b*b)) (:+) ints ints
gaussianInts = map snd (applyMerge (\x y -> (x*x + y*y, x :+ y)) ints ints)
```

Square-free integers ([Wikipedia](https://en.wikipedia.org/wiki/Square-free_integer)):
Expand Down

0 comments on commit 34c70d4

Please sign in to comment.