Arc Forumnew | comments | leaders | submitlogin
3 points by Pauan 4379 days ago | link | parent

Use apply:

  (= ll '((1 2 3) (3 2 1)))

  (apply map + ll)
These two are the same:

  (+ 1 2 3)
  (apply + '(1 2 3))


2 points by ChristophRe 4379 days ago | link

Thank you, Pauan.

Ok. I did the mistake (missed to take the apply) not to apply it.

No it is clear. I learned from this mistakes.

Do you the word "mis-take

-----

3 points by rocketnia 4379 days ago | link

"Do you the word "mis-take"

I don't know exactly what you're asking for, but I'll try to help you. :)

---

Thank you, Pauan.

Ok. I made a mistake not to call apply.

Now it is clear. I learned from this mistake.

---

The phrase "apply it" is confusing because we sometimes say "apply a function (to some arguments)" even when we're not calling apply.

As a verb, "to mistake something (for something else)" means "to misunderstand something (thinking it's something else instead)." As a noun, "a mistake" is an accidental occurrence. The idiom "to make a mistake" means to cause an occurrence by accident.

The word "mistake" isn't usually broken up into "mis-" ("incorrectly") and "take" ("understand").

-----