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 da6211e commit ae77b01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ squarefrees = [1..] `minus` applyMerge (*) (map (^2) primes) [1..]
```

## Naming
The name `applyMerge` comes from the idea of applying `f` to each `x` and `y`, and merging the results into one sorted output. I'm still thinking of the ideal name for this function. Other options include `sortedLiftA2`/`orderedLiftA2`, from the idea that this function is equivalent to `sort (liftA2 f xs ys)` on finite lists. If you have any ideas on the naming, let me know!
The name `applyMerge` comes from the idea of applying `f` to each `x` and `y`, and merging the results into one sorted output. I'm still thinking of the ideal name for this function. Other options include `sortedLiftA2`/`orderedLiftA2`, from the idea that this function is equivalent to `sort (liftA2 f xs ys)` when `xs` and `ys` are finite. If you have any ideas on the naming, let me know!

## Further reading

Expand Down

0 comments on commit ae77b01

Please sign in to comment.