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

Add inits & tails

Open JordanMartinez opened this issue 2 years ago • 0 comments

Description of the change

  • Export tails; make it stack safe
  • Implement inits

Note: the inits test currently fails with a "JavaScript heap out of memory" error because we're duplicating a list with 100k elements 999,999 times. Thoughts on how this should proceed?


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)

JordanMartinez avatar Jan 31 '23 17:01 JordanMartinez