Why should I use 'apply' in Clojure?

后端 未结 6 1736
执念已碎
执念已碎 2021-01-30 08:34

This is what Rich Hickey said in one of the blog posts but I don\'t understand the motivation in using apply. Please help.

A big difference between Clojur

6条回答
  •  清歌不尽
    2021-01-30 09:25

    The usual pattern for apply type operations is to combine a function provided at runtime with a set of arguments, ditto.

    I've not done enough with clojure to be able to be confident about the subtleties for that particular language to tell whether the use of apply in that case would be strictly necessary.

提交回复
热议问题