X-Git-Url: https://svn.cri.ensmp.fr/git/Faustine.git/blobdiff_plain/d8214dc258396483f72533504515a4e1d1b3deef..f59ac471aa5a080301d70e7d7e1e81f34151ba2f:/interpretor/aux.ml?ds=sidebyside diff --git a/interpretor/aux.ml b/interpretor/aux.ml index fccb904..9463cae 100644 --- a/interpretor/aux.ml +++ b/interpretor/aux.ml @@ -6,6 +6,9 @@ *) +let array_map = fun f -> fun a -> + let n = Array.length a in + Array.init n (fun i -> f a.(i));; let array_map2 = fun f -> fun a -> fun b -> let n1 = Array.length a in