Library zoo_std.glist__code
From zoo Require Import
prelude.
From zoo.language Require Import
typeclasses
notations.
From zoo_std Require Import
glist__types.
From zoo Require Import
options.
Definition glist٠rev_app : val :=
rec: "rev_app" "t1" "t2" ⇒
match: "t1" with
| Gnil ⇒
"t2"
| Gcons "v" "t1" ⇒
"rev_app" "t1" ‘Gcons[ "v", "t2" ]
end.
Definition glist٠rev : val :=
fun: "t" ⇒
glist٠rev_app "t" §Gnil.
prelude.
From zoo.language Require Import
typeclasses
notations.
From zoo_std Require Import
glist__types.
From zoo Require Import
options.
Definition glist٠rev_app : val :=
rec: "rev_app" "t1" "t2" ⇒
match: "t1" with
| Gnil ⇒
"t2"
| Gcons "v" "t1" ⇒
"rev_app" "t1" ‘Gcons[ "v", "t2" ]
end.
Definition glist٠rev : val :=
fun: "t" ⇒
glist٠rev_app "t" §Gnil.