Bytes.concat and Bytes.split #638

Merged
zxq9 merged 10 commits from bytes-concat into master 2019-09-10 02:14:00 +09:00
2 changed files with 5 additions and 0 deletions
Showing only changes of commit cc531f9957 - Show all commits

View File

@ -143,6 +143,7 @@ compilable_contracts() ->
"address_chain", "address_chain",
"namespace_bug", "namespace_bug",
"bytes_to_x", "bytes_to_x",
"bytes_concat",
"aens", "aens",
"tuple_match", "tuple_match",
"cyclic_include", "cyclic_include",

View File

@ -0,0 +1,4 @@
contract BytesConcat =
entrypoint rot(a : bytes(3)) =
switch (Bytes.split(a))
(b, c) => Bytes.concat(c : bytes(2), b)