open import Agda.Builtin.Bool
open import Agda.Builtin.List
open import Agda.Builtin.Nat

map : {A B : Set}  (A  B)  List A  List B
map f [] = []
map f (x  xs) = f x  map f xs

test : List Nat
test = map (5 +_) (1  [])
{-# COMPILE AGDA2LAMBOX test #-}
Debug λ☐ Rocq
  ↪  
WASM C OCaml CakeML Rust Elm
  ↪  
  ↪