9 ms·
Here's one in Ocaml that modifies the + operator let (+) x y = match (x,y) with (2,2) -> 5 | (x,y) -> x+y;;
by eqnoob123 12y ago
Here's one in Ocaml that modifies the + operator
let (+) x y = match (x,y) with
(2,2) -> 5
| (x,y) -> x+y;;
- a-nikolaev 12y agoA shorter one: let (+) 2 2 = 5 in 2+2;;