Lisp<->ML

May. 17th, 2008 09:37 pm
gusl: (Default)
[personal profile] gusl
About 8 years ago, I made a multilingual dictionary to help you translate between programming languages (at the time, between C++, VB, JavaScript). I'm now tempted to start the same thing for Lisp<->ML.


Let f be a function of many variables. If the arguments you want to pass are in a list l, how do you apply f to the arguments?

Common Lisp:
(apply f l)

OCaml:
uncurry f l;;


If you have the arguments a, b, how do you apply f?

CL:
(funcall f a b)

Scheme:
(f a b)

OCaml:
f a b;;


oh, I need to be more careful about tuples vs lists.
(will be screened)
(will be screened if not validated)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

February 2020

S M T W T F S
      1
2345678
9101112131415
16171819202122
23242526272829

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags