Bytes.concat and Bytes.split #638

Merged
zxq9 merged 10 commits from bytes-concat into master 2019-09-10 02:14:00 +09:00
zxq9 commented 2019-09-10 01:36:19 +09:00 (Migrated from gitlab.com)

Created by: UlfNorell

Adds

  Bytes.concat : (bytes(A), bytes(B)) => bytes(A + B)
  Bytes.split : bytes(A + B) => bytes(A) * bytes(B)

The type checker will solve for A and B and give an error message if they don't solve to concrete natural numbers.

*Created by: UlfNorell* - Pivotal: [PT-168370742](https://www.pivotaltracker.com/story/show/168370742) - aeternity/aebytecode#80 - aeternity/aeternity#2762 Adds ``` Bytes.concat : (bytes(A), bytes(B)) => bytes(A + B) Bytes.split : bytes(A + B) => bytes(A) * bytes(B) ``` The type checker will solve for `A` and `B` and give an error message if they don't solve to concrete natural numbers.
zxq9 commented 2019-09-10 01:54:54 +09:00 (Migrated from gitlab.com)

Created by: happi

Review: Approved

*Created by: happi* **Review:** Approved
zxq9 commented 2019-09-10 02:12:51 +09:00 (Migrated from gitlab.com)

Created by: hanssv

Review: Approved

*Created by: hanssv* **Review:** Approved
zxq9 commented 2019-09-10 02:14:00 +09:00 (Migrated from gitlab.com)

Merged by: UlfNorell at 2019-09-09 17:14:00 UTC

*Merged by: UlfNorell at 2019-09-09 17:14:00 UTC*
Sign in to join this conversation.
No description provided.