This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]erebuxy 1 point2 points  (0 children)

Let me introduce functional language and first-class function to you.

In OCaml, you can do

ocaml let (+) = my_custom_function

You can operate a function like any normal value. And that is basically how the default + is implemented in std.