let rec get_ctyp_args a al = match a with | Ast.TyApp (_, a1, a2) -> get_ctyp_args a1 (a2 :: al) | _ -> (a, al)