You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
N.b. should be compiled as const b6 : bytes = Bytes.sub(1n, 2n, b0);
for cast to int
function foo (const a : int ; const b : int) : int is
block {
const initial : int = 17;
const packed : bytes = Bytes.pack(initial);
const unpacked : option(int) = Bytes.unpack(packed);
const value : int = case unpacked of
| None -> (failwith("cant unpack") : int)
| Some(value) -> value
end;
} with value
example:
The text was updated successfully, but these errors were encountered: