purescript-exists icon indicating copy to clipboard operation
purescript-exists copied to clipboard

Add `mapExists` function

Open yukikurage opened this issue 2 years ago • 0 comments

Description of the change

fix #16

And the documentation was a bit wrong, so I fixed it.

nats :: Stream Number
nats = mkExists $ StreamF 0 (\n -> Tuple (n + 1) n)

nats :: Stream Int
nats = mkExists $ StreamF 0 (\n -> Tuple (n + 1) n)

Checklist:

  • [ ] Added the change to the changelog's "Unreleased" section with a reference to this PR (e.g. "- Made a change (#0000)")
  • [ ] Linked any existing issues or proposals that this pull request should close
  • [ ] Updated or added relevant documentation
  • [ ] Added a test for the contribution (if applicable)

yukikurage avatar Nov 16 '22 15:11 yukikurage