非常教程

Clojure 1.8参考手册

Clojure 1.8

clojure.edn

完整名称空间名称:clojure.edn

概述

edn reading.

公共变量和函数

读函数

Usage: (read)
       (read stream)
       (read opts stream)
Reads the next object from stream, which must be an instance of
java.io.PushbackReader or some derivee.  stream defaults to the
current value of *in*.

Reads data in the edn format (subset of Clojure data):
http://edn-format.org

opts is a map that can include the following keys:
:eof - value to return on end-of-file. When not supplied, eof throws an exception.
:readers  - a map of tag symbols to data-reader functions to be considered before default-data-readers.
            When not supplied, only the default-data-readers will be used.
:default - A function of two args, that will, if present and no reader is found for a tag,
           be called with the tag and the value.

在Clojure版本1.5中添加

来源

读-串函数

Usage: (read-string s)
       (read-string opts s)
Reads one object from the string s. Returns nil when s is nil or empty.

Reads data in the edn format (subset of Clojure data):
http://edn-format.org

opts is a map as per clojure.edn/read

在Clojure版本1.5中添加

来源

Clojure 1.8

Clojure 是一种运行在 Java 平台上的 Lisp 方言,Lisp 是一种以表达性和功能强大著称的编程语言,但人们通常认为它不太适合应用于一般情况,而 Clojure 的出现彻底改变了这一现状。如今,在任何具备 Java 虚拟机的地方,您都可以利用 Lisp 的强大功能。

版本 1.8
发布版本 1.8

Clojure 1.8目录

1.Clojure 1.8