Add Op.array_length (#6)

This commit is contained in:
folex 2021-07-02 19:00:05 +03:00 committed by GitHub
parent 4b6cbbc31e
commit 15953e92eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,6 +67,8 @@ data Contact:
service Op("op"):
-- does nothing
noop()
-- returns length of the passed array
array_length(array: []string) -> u32
-- takes any number of arguments and wraps them into a single array
array(a: string, b: ?string, c: ?string, d: ?string) -> []string
-- takes any number of arrays and flattens them by concatenating