let rec paCom_of_list = function | [] -> Ast.PaNil ghost | [ x ] -> x | x :: xs -> let _loc = loc_of_patt x in Ast.PaCom (_loc, x, (paCom_of_list xs))