
エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Is NodeJs faster than Clojure?
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Is NodeJs faster than Clojure?
I just started learning Clojure. One of the first things I noticed is that there are no loops. Th... I just started learning Clojure. One of the first things I noticed is that there are no loops. That's OK, I can recur. So let's look at this function (from Practical Clojure): (defn add-up "Adds up numbers from 1 to n" ([n] (add-up n 0 0)) ([n i sum] (if (< n i) sum (recur n (+ 1 i) (+ i sum))))) To achieve the same function in Javascript, we use a loop like so: function addup (n) { var sum = 0; f