Advertisement
Guest User

Untitled

a guest
Sep 7th, 2016
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.37 KB | None | 0 0
  1. let f n arr =
  2.     Array.map (Array.make n)
  3.     |> Array.fold_left Array.append [| |]
  4.  
  5. File "solution.ml", line 3, characters 7-41:
  6. Error: This expression has type 'a array array -> 'a array
  7.        but an expression was expected of type
  8.          ('b array -> 'b array array) -> 'c
  9.        Type 'a array array is not compatible with type
  10.          'b array -> 'b array array
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement