Closed cometkim closed 1 year ago
Latest commit: f1ad495a845def43a14fd613c8615a5566b524b9
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
Latest commit: |
f1ad495
|
Status: | ✅ Deploy successful! |
Preview URL: | https://bceb3f6b.rescript-collection.pages.dev |
Branch Preview URL: | https://match-props.rescript-collection.pages.dev |
Ok we dont need this
last
is derived value fromtail
init
is the previous vectorThis enables
vec{...init, last}
like pattern matchingThe problem with this implementation is
init
introduce self-referencing which makes it too deep to serialize. As the result, existing tests are failed because of stackoverflow while checking the equalityWe need a smarter way to make
init
more efficient or an alternative structure.