https://gitlab.com/tezos/tezos
Raw File
Tip revision: 859ad53d118deb65fda70547abe20731c6e92aba authored by Emma Turner on 09 October 2023, 10:54:43 UTC
nix: disable stackprotector on all platforms
Tip revision: 859ad53
map_iter.tz
parameter (map (int :k) (int :e));
storage (pair (int :k) (int :e));
code { CAR; PUSH @acc_e (int :e) 0; PUSH @acc_k (int :k) 0; PAIR % %r; SWAP;
       ITER
         { DIP {DUP; CAR; DIP{CDR}}; DUP; # Last instr
           DIP{CAR; ADD}; SWAP; DIP{CDR; ADD}; PAIR % %r };
       NIL operation; PAIR}
back to top