2018-01-01から1ヶ月間の記事一覧
Syntax Functions Sequential Collections Hashed Collections Flow Control
Getting started 始め方 The spec library specifies the structure of data, validates or destructures it, and can generate data based on the spec. specライブラリを用いると、データの構造のスペックを書くことができる。また、データを検証したり分…
Statements vs. Expressions 文と式との違い In Java, expressions return values, whereas statements do not. Javaでは、式は値を返し、文は値を返さない。
As described in the previous section, there are four key Clojure collection types: vectors, lists, sets, and maps. 前回の節で述べたように、Clojureには4つの重要なコレクション型がある。ベクタ、リスト、セット、マップである。Of those four coll…
Clojure collections "collect" values into compound values. Clojureのコレクションとは、任意個の値を集めて(コレクトして)、1つの複合的な値としたものだ。There are four key Clojure collection types: vectors, lists, sets, and maps. Clojureにお…
Creating Functions 関数を作る Clojure is a functional language. Clojureは関数型言語の一つだ。Functions are first-class and can be passed-to or returned-from other functions. 関数は第一級であり、他の関数に渡されたり、関数から返されたりする…
Literals リテラル Below are some examples of literal representations of common primitives in Clojure. Clojureで一般的な基本要素らのリテラル表現のいくつかの例を次に示す。
Welcome to Clojure! Clojureにようこそ! Check out Learn Clojure, Resources, or Books for learning the language! Clojureを学ぶにあたっては、Learn Clojure、Resouces、Booksが便利かもしれません。