Facebook
From Sweltering Finch, 6 Years ago, written in OCaml (Objective Caml).
This paste is a reply to Untitled from Trivial Wolf - go back
Embed
Viewing differences between Untitled and Re: Untitled
let f = function
| Scal (v) -> v
| Vect (v1, v2) -> v1 +. v2
| _ -> 0.;;