unisonweb / base

Unison base libraries
https://share.unison-lang.org/@unison/base
18 stars 6 forks source link

Add `Text.cons` (and tests for `Text.uncons`) #188

Closed JohanWinther closed 11 months ago

JohanWinther commented 11 months ago

Comments

This is my first PR to the Unison Base library. It was a bit confusing to get the metadata correctly set up, but they should be properly linked to all new additions. Also the workflow for submitting a PR was a bit misleading when using projects, but I managed to figure out what to do by looking at the other recently closed PRs in the repo.

Changes

The branch https://share.unison-lang.org/@unison/base/code/@johanwinther/text-cons/latest adds

  1. Text.cons (like Text.uncons but reversed)
  2. Text.cons.tests
  3. Text.uncons.tests
runarorama commented 11 months ago

Merged into main. Thank you! 🌈⭐