We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db485f1 commit a778fb7Copy full SHA for a778fb7
jscomp/ext/ext_array.ml
@@ -58,7 +58,7 @@ let reverse_of_list = function
58
| hd::tl -> Array.unsafe_set a (len - i - 2) hd; fill (i+1) tl in
59
fill 0 tl
60
61
-let filter f a =
+let filter a f =
62
let arr_len = Array.length a in
63
let rec aux acc i =
64
if i = arr_len
jscomp/ext/ext_array.mli
@@ -33,7 +33,10 @@ val reverse_in_place : 'a array -> unit
33
val reverse : 'a array -> 'a array
34
val reverse_of_list : 'a list -> 'a array
35
36
-val filter : ('a -> bool) -> 'a array -> 'a array
+val filter :
37
+ 'a array ->
38
+ ('a -> bool) ->
39
+ 'a array
40
41
val filter_map :
42
'a array ->
0 commit comments