Facebook
From Sweltering Finch, 6 Years ago, written in OCaml (Objective Caml).
This paste is a reply to Untitled from Trivial Wolf - view diff
Embed
Download Paste or View Raw
Hits: 376
  1. let f = function
  2. | Scal v -> v
  3. | Vect (v1, v2) -> v1 +. v2
  4. | _ -> 0.;;