Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array "subtraction" operator(s)? #4

Open
cabo opened this issue Jan 15, 2021 · 0 comments
Open

Array "subtraction" operator(s)? #4

cabo opened this issue Jan 15, 2021 · 0 comments

Comments

@cabo
Copy link
Collaborator

cabo commented Jan 15, 2021

Over in cbor-wg/cbor-oid#3, we had a proposal to be able to do

root-sha2 = bytes .sdnvseq [ 60 840 1 101 3 4 2 ]
root-sha256 = byte .sdnvseq [ 60 840 1 101 3 4 2 1 ]
rel-sha25 = root-sha256 .oidrel root-sha2

(Note that the inverse (array concatenation) can already be done via unwrap and groups:

c = [~a, ~b]
a = [1, 2, 3]
b = [4, 5, 6]

➔ [1, 2, 3, 4, 5, 6])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant