Guest
Public paste!

Untitled

By: a guest | Mar 20th, 2010 | Syntax: OCaml | Size: 0.43 KB | Hits: 46 | Expires: Never
Copy text to clipboard
  1.  #use"anddata.caml";;
  2. val anddata : float list list =
  3.   [[1.; -1.; -1.; -1.]; [1.; -1.; 1.; -1.]; [1.; 1.; -1.; -1.];
  4.    [1.; 1.; 1.; 1.]]
  5. # #use"darkmatrix.caml";;
  6. val ( *- ) : 'a -> 'b -> float list -> float list -> float = <fun>
  7. val rotate : 'a list -> 'b -> (float list -> float list -> float) list =
  8.   <fun>
  9. # rotate anddata [1.0;1.0;1.0;1.0];;
  10. - : (float list -> float list -> float) list = [<fun>; <fun>; <fun>; <fun>]
  11. #