没有合适的资源?快使用搜索试试~ 我知道了~
首页Clojure Programming
Clojure Programming
5星 · 超过95%的资源 需积分: 9 34 下载量 53 浏览量
更新于2023-06-07
收藏 5.21MB PDF 举报
Clojure Programming by Chas Emerick, Brian Carper, and Christophe Grand Copyright © 2012 Chas Emerick, Brian Carper, and Christophe Grand. All rights reserved. Printed in the United States of America. Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
资源详情
资源推荐
Clojure Programming
Chas Emerick, Brian Carper, and Christophe Grand
Beijing
•
Cambridge
•
Farnham
•
Köln
•
Sebastopol
•
Tokyo
Clojure Programming
by Chas Emerick, Brian Carper, and Christophe Grand
Copyright © 2012 Chas Emerick, Brian Carper, and Christophe Grand. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly
books
may be purchased for educational, business, or sales promotional use. Online editions
are also available for most titles (http://my.safaribooksonline.com). For more information, contact our
corporate/institutional sales department: (800) 998-9938 or corporate@oreilly.com.
Editors: Mike Loukides and Julie Steele
Production Editor: Teresa Elsey
Copyeditor: Nancy Reinhardt
Proofreader: Linley Dolby
Indexer: Fred Brown
Cover Designer: Karen Montgomery
Interior Designer: David Futato
Illustrator: Robert Romano
April 2012: First Edition.
Revision History for the First Edition:
2012-03-28 First release
See
http://oreilly.com/catalog/errata.csp?isbn=9781449394707 for release details.
Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of
O’Reilly Media,
Inc. Clojure Programming, the image of a painted snipe, and related trade dress are
trademarks of O’Reilly Media, Inc.
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as
trademarks. Where those designations appear in this book, and O’Reilly Media, Inc., was aware of a
trademark claim, the designations have been printed in caps or initial caps.
While every precaution has been taken in the preparation of this book, the publisher and authors assume
no responsibility for errors or omissions, or for damages resulting from the use of the information con-
tained herein.
ISBN: 978-1-449-39470-7
[LSI]
1332955528
Table of Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
1.
Down the Rabbit Hole . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Why Clojure? 1
Obtaining Clojure 3
The Clojure REPL 3
No, Parentheses Actually Won’t Make You Go Blind 6
Expressions, Operators, Syntax, and Precedence 7
Homoiconicity 9
The Reader 12
Scalar Literals 13
Comments 18
Whitespace and Commas 19
Collection Literals 19
Miscellaneous Reader Sugar 20
Namespaces 20
Symbol Evaluation 23
Special Forms 23
Suppressing Evaluation: quote 24
Code Blocks: do 25
Defining Vars: def 26
Local Bindings: let 27
Destructuring (let, Part 2) 28
Creating Functions: fn 36
Conditionals: if 42
Looping: loop and recur 43
Referring to Vars: var 44
Java Interop: . and new 44
Exception Handling: try and throw 45
Specialized Mutation: set! 45
Primitive Locking: monitor-enter and monitor-exit 45
Putting It All Together 46
iii
剩余629页未读,继续阅读
jakelong
- 粉丝: 9
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- zigbee-cluster-library-specification
- JSBSim Reference Manual
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功