From a9628fda0fc027c54b5ed5313a0c41731d79e41f Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Thu, 19 Nov 2026 08:47:29 +0100 Subject: Create all the datatypes in a single time. Use aliases for the type name for clarification --- lib/model/field.ml | 6 ------ 1 file changed, 6 deletions(-) (limited to 'lib/model/field.ml') diff --git a/lib/model/field.ml b/lib/model/field.ml index c7e4667..8242c97 100644 --- a/lib/model/field.ml +++ b/lib/model/field.ml @@ -47,9 +47,3 @@ let create : validation; criteria; } - -let map : ('a -> 'b) -> 'a t -> 'b t = - fun f t -> - let (T field_type) = t.type' in - let new_type = T (Typ.map f field_type) in - { t with type' = new_type } -- cgit v1.2.3