Is there any difference between (list f 1 2) and (f 1 2)?
If yes, then is (f 1 2) equivalent to ((f 1) 2) (currying)?
If yes, then is (a b) mean “add b to the end of list a“?
If yes, then what append function is for?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes:
(list f 1 2)calls the functionlistwith the argumentsf,1and2, which creates a list containing those elements.(f 1 2)calls the functionfwith the arguments1and2, which does whateverfwas defined to do.No. Functions in Lisp aren’t curried automatically. If you call a function as
(f 1 2)it must be a real binary function, not a curried function.No, it means “call the function
awith the argumentb“.