File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -774,3 +774,7 @@ let filter lst p =
774774 | x :: l -> if p x then find (x :: accu) l ~p else find accu l ~p
775775 in
776776 find [] lst ~p
777+
778+ let is_empty = function
779+ | [] -> true
780+ | _ :: _ -> false
Original file line number Diff line number Diff line change @@ -231,3 +231,5 @@ val filter : 'a list -> ('a -> bool) -> 'a list
231231
232232val array_list_filter_map :
233233 'a array -> 'b list -> ('a -> 'b -> 'c option ) -> 'c list
234+
235+ val is_empty : 'a list -> bool
Original file line number Diff line number Diff line change @@ -1625,7 +1625,7 @@ module Migrate = struct
16251625 MapperUtils. get_template_args_to_insert mapper template_args
16261626 []
16271627 in
1628- if List . is_empty template_args_to_insert then
1628+ if Ext_list . is_empty template_args_to_insert then
16291629 {
16301630 exp with
16311631 pexp_desc =
You can’t perform that action at this time.
0 commit comments