Clojure介绍
来源:互联网 发布:怎样下载python 编辑:程序博客网 时间:2024/04/28 14:34
What is Clojure?
Clojure is a dynamic,LISP-like programming language that runs on the JVm.
Homoiconic
Code is Data
Data is Code
Everything is list
Fairly functional
Runtime polymorphism
Jvm language
Software transactional memory
Agent-based asynchronous concurrency
Numbers -1234
Ratios -22/7
Strings -"foo"
Characters- \a
Symbols -foo
Keywords- :foo
Bollean -true/false
Null -nil
Lists -(1 2 3 4)
Vectors -[1 2 3 4]
Maps -{:a 1 :b 2 :c 3} or {:a 1, :b 2, :c 3}
Sets -#{foo bar baz}
(class "foo") => java.lang.String
(rest '("foo" "bar" "baz")) => ("bar" "baz")
The ' tells the reader not toevaluate the first element as a function
'(1 2 3) is shorthand for (quote (1 2 3))
Collections are the main datastructure in clojure
A collection can be a list,a vector, amap or a set
参考资料
http://www.slideshare.net/thnetos/clojure-intro
- Clojure介绍
- Clojure介绍
- Clojure ns 宏介绍
- 关于Clojure的简单介绍
- Clojure介绍、安装和语法
- clojure
- Clojure
- clojure
- clojure
- Clojure
- 介绍使用Clojure的OpenCV开发
- Clojure入门教程
- Clojure编程
- Clojure程序设计
- 学习clojure
- 4clojure
- ring-clojure
- compojure-clojure
- 在开始运行输入CMD回车后,CMD命令黑框框出来闪一下就消失不见了--解决方法
- Qt中右击菜单(treeWidget)
- 编程不能创建内建体量
- MySQL源代码的海洋中游弋 初探MySQL之SQL执行过程
- ArcGIS API for JavaScript 本地部署
- Clojure介绍
- Windows网络体系结构总结
- 数据结构-----二叉树的遍历
- jQuery 选择器(1)
- Future 模式
- JS验证大全
- Net WebService 同步、异步、同步压缩解压和异步压缩解压实例详解(自带的Gzip)
- 非AppStore应用检查更新教程(附Demo)
- 我对linux理解之tty一