Suche senden
Hochladen
Clojure入門
•
Als KEY, PDF herunterladen
•
20 gefällt mir
•
5,049 views
Naoyuki Kakuda
Folgen
Introduction to Clojure Programming.
Weniger lesen
Mehr lesen
Technologie
Melden
Teilen
Melden
Teilen
1 von 52
Jetzt herunterladen
Empfohlen
はじめてのGroovy
はじめてのGroovy
Tsuyoshi Yamamoto
Groovy ネタ NGK 忘年会2009 ライトニングトーク
Groovy ネタ NGK 忘年会2009 ライトニングトーク
Tsuyoshi Yamamoto
Shell and perl scripting classes in mumbai
Shell and perl scripting classes in mumbai
Vibrant Technologies & Computers
Basics
Basics
Logan Campbell
Introduction to jRuby
Introduction to jRuby
Adam Kalsey
Javascript ES6 generators
Javascript ES6 generators
Ramesh Nair
"PostgreSQL and Python" Lightning Talk @EuroPython2014
"PostgreSQL and Python" Lightning Talk @EuroPython2014
Henning Jacobs
Python postgre sql a wonderful wedding
Python postgre sql a wonderful wedding
Stéphane Wirtel
Empfohlen
はじめてのGroovy
はじめてのGroovy
Tsuyoshi Yamamoto
Groovy ネタ NGK 忘年会2009 ライトニングトーク
Groovy ネタ NGK 忘年会2009 ライトニングトーク
Tsuyoshi Yamamoto
Shell and perl scripting classes in mumbai
Shell and perl scripting classes in mumbai
Vibrant Technologies & Computers
Basics
Basics
Logan Campbell
Introduction to jRuby
Introduction to jRuby
Adam Kalsey
Javascript ES6 generators
Javascript ES6 generators
Ramesh Nair
"PostgreSQL and Python" Lightning Talk @EuroPython2014
"PostgreSQL and Python" Lightning Talk @EuroPython2014
Henning Jacobs
Python postgre sql a wonderful wedding
Python postgre sql a wonderful wedding
Stéphane Wirtel
RedHat/CentOs Commands for administrative works
RedHat/CentOs Commands for administrative works
Md Shihab
Derping With Kotlin
Derping With Kotlin
Ross Tuck
ES6 generators
ES6 generators
Steven Foote
Frege is a Haskell for the JVM
Frege is a Haskell for the JVM
jwausle
Initialization
Initialization
富生 王
Unfiltered Unveiled
Unfiltered Unveiled
Wilfred Springer
PubNative Tracker
PubNative Tracker
Andrew Djoga
Стажировка 2016-07-27 02 Денис Нелюбин. PostgreSQL и jsonb
Стажировка 2016-07-27 02 Денис Нелюбин. PostgreSQL и jsonb
SmartTools
Php&redis presentation
Php&redis presentation
Antonio De Patto
Chrome拡張開発者のためのFirefox拡張開発
Chrome拡張開発者のためのFirefox拡張開発
swdyh
How to stand on the shoulders of giants
How to stand on the shoulders of giants
Ian Barber
clonehd01
clonehd01
Luiz Francisco Bozo
Python utan-stodhjul-motorsag
Python utan-stodhjul-motorsag
niklal
Elixir - Tolerância a Falhas para Adultos - Secot VIII Sorocaba
Elixir - Tolerância a Falhas para Adultos - Secot VIII Sorocaba
Fabio Akita
Groovy as a scripting language
Groovy as a scripting language
Jenn Strater
QA Fest 2019. Saar Rachamim. Developing Tools, While Testing
QA Fest 2019. Saar Rachamim. Developing Tools, While Testing
QAFest
(Fun clojure)
(Fun clojure)
Timo Sulg
Some Pry Features
Some Pry Features
Yann VERY
Vim Hacks (OSSF)
Vim Hacks (OSSF)
Lin Yo-An
Debugging: Rules And Tools - PHPTek 11 Version
Debugging: Rules And Tools - PHPTek 11 Version
Ian Barber
渋谷JVM#1 Immutable時代のプログラミング言語 Clojure
渋谷JVM#1 Immutable時代のプログラミング言語 Clojure
Yoshitaka Kawashima
キメるClojure
キメるClojure
Yoshitaka Kawashima
Weitere ähnliche Inhalte
Was ist angesagt?
RedHat/CentOs Commands for administrative works
RedHat/CentOs Commands for administrative works
Md Shihab
Derping With Kotlin
Derping With Kotlin
Ross Tuck
ES6 generators
ES6 generators
Steven Foote
Frege is a Haskell for the JVM
Frege is a Haskell for the JVM
jwausle
Initialization
Initialization
富生 王
Unfiltered Unveiled
Unfiltered Unveiled
Wilfred Springer
PubNative Tracker
PubNative Tracker
Andrew Djoga
Стажировка 2016-07-27 02 Денис Нелюбин. PostgreSQL и jsonb
Стажировка 2016-07-27 02 Денис Нелюбин. PostgreSQL и jsonb
SmartTools
Php&redis presentation
Php&redis presentation
Antonio De Patto
Chrome拡張開発者のためのFirefox拡張開発
Chrome拡張開発者のためのFirefox拡張開発
swdyh
How to stand on the shoulders of giants
How to stand on the shoulders of giants
Ian Barber
clonehd01
clonehd01
Luiz Francisco Bozo
Python utan-stodhjul-motorsag
Python utan-stodhjul-motorsag
niklal
Elixir - Tolerância a Falhas para Adultos - Secot VIII Sorocaba
Elixir - Tolerância a Falhas para Adultos - Secot VIII Sorocaba
Fabio Akita
Groovy as a scripting language
Groovy as a scripting language
Jenn Strater
QA Fest 2019. Saar Rachamim. Developing Tools, While Testing
QA Fest 2019. Saar Rachamim. Developing Tools, While Testing
QAFest
(Fun clojure)
(Fun clojure)
Timo Sulg
Some Pry Features
Some Pry Features
Yann VERY
Vim Hacks (OSSF)
Vim Hacks (OSSF)
Lin Yo-An
Debugging: Rules And Tools - PHPTek 11 Version
Debugging: Rules And Tools - PHPTek 11 Version
Ian Barber
Was ist angesagt?
(20)
RedHat/CentOs Commands for administrative works
RedHat/CentOs Commands for administrative works
Derping With Kotlin
Derping With Kotlin
ES6 generators
ES6 generators
Frege is a Haskell for the JVM
Frege is a Haskell for the JVM
Initialization
Initialization
Unfiltered Unveiled
Unfiltered Unveiled
PubNative Tracker
PubNative Tracker
Стажировка 2016-07-27 02 Денис Нелюбин. PostgreSQL и jsonb
Стажировка 2016-07-27 02 Денис Нелюбин. PostgreSQL и jsonb
Php&redis presentation
Php&redis presentation
Chrome拡張開発者のためのFirefox拡張開発
Chrome拡張開発者のためのFirefox拡張開発
How to stand on the shoulders of giants
How to stand on the shoulders of giants
clonehd01
clonehd01
Python utan-stodhjul-motorsag
Python utan-stodhjul-motorsag
Elixir - Tolerância a Falhas para Adultos - Secot VIII Sorocaba
Elixir - Tolerância a Falhas para Adultos - Secot VIII Sorocaba
Groovy as a scripting language
Groovy as a scripting language
QA Fest 2019. Saar Rachamim. Developing Tools, While Testing
QA Fest 2019. Saar Rachamim. Developing Tools, While Testing
(Fun clojure)
(Fun clojure)
Some Pry Features
Some Pry Features
Vim Hacks (OSSF)
Vim Hacks (OSSF)
Debugging: Rules And Tools - PHPTek 11 Version
Debugging: Rules And Tools - PHPTek 11 Version
Andere mochten auch
渋谷JVM#1 Immutable時代のプログラミング言語 Clojure
渋谷JVM#1 Immutable時代のプログラミング言語 Clojure
Yoshitaka Kawashima
キメるClojure
キメるClojure
Yoshitaka Kawashima
Introduction to Clojure
Introduction to Clojure
Renzo Borgatti
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
Naoyuki Kakuda
週刊Webサイトのアーキテクチャ
週刊Webサイトのアーキテクチャ
Yoshitaka Kawashima
Elixirについて私が知ってる二、三の事柄
Elixirについて私が知ってる二、三の事柄
Tsunenori Oohara
『はじめてのClojure』勉強会#3 第7章:テスト、テスト、テスト
『はじめてのClojure』勉強会#3 第7章:テスト、テスト、テスト
makopi 23
ClojureでElectronアプリを作ろう
ClojureでElectronアプリを作ろう
Kazuhiro Hara
Clojure Language Update (2015)
Clojure Language Update (2015)
sohta
既婚プログラマの時間捻出術
既婚プログラマの時間捻出術
Yoshitaka Kawashima
JobStreamerではじめるJavaBatchのクラウド分散実行
JobStreamerではじめるJavaBatchのクラウド分散実行
Yoshitaka Kawashima
Seasar conference 2015 sa-compojure
Seasar conference 2015 sa-compojure
Yoshitaka Kawashima
Boilerplate vs Magic
Boilerplate vs Magic
Yoshitaka Kawashima
マイクロフレームワークEnkan(とKotowari)ではじめるREPL駆動開発
マイクロフレームワークEnkan(とKotowari)ではじめるREPL駆動開発
Yoshitaka Kawashima
Javaの進化にともなう運用性の向上はシステム設計にどういう変化をもたらすのか
Javaの進化にともなう運用性の向上はシステム設計にどういう変化をもたらすのか
Yoshitaka Kawashima
Antifragile Clojure
Antifragile Clojure
Yoshitaka Kawashima
プログラミング言語Clojureのニャンパスでの活用事例
プログラミング言語Clojureのニャンパスでの活用事例
sohta
入門Transducers
入門Transducers
sohta
From Java To Clojure
From Java To Clojure
Kent Ohashi
会社でClojure使ってみて分かったこと
会社でClojure使ってみて分かったこと
Recruit Technologies
Andere mochten auch
(20)
渋谷JVM#1 Immutable時代のプログラミング言語 Clojure
渋谷JVM#1 Immutable時代のプログラミング言語 Clojure
キメるClojure
キメるClojure
Introduction to Clojure
Introduction to Clojure
Clojure + MongoDB on Heroku
Clojure + MongoDB on Heroku
週刊Webサイトのアーキテクチャ
週刊Webサイトのアーキテクチャ
Elixirについて私が知ってる二、三の事柄
Elixirについて私が知ってる二、三の事柄
『はじめてのClojure』勉強会#3 第7章:テスト、テスト、テスト
『はじめてのClojure』勉強会#3 第7章:テスト、テスト、テスト
ClojureでElectronアプリを作ろう
ClojureでElectronアプリを作ろう
Clojure Language Update (2015)
Clojure Language Update (2015)
既婚プログラマの時間捻出術
既婚プログラマの時間捻出術
JobStreamerではじめるJavaBatchのクラウド分散実行
JobStreamerではじめるJavaBatchのクラウド分散実行
Seasar conference 2015 sa-compojure
Seasar conference 2015 sa-compojure
Boilerplate vs Magic
Boilerplate vs Magic
マイクロフレームワークEnkan(とKotowari)ではじめるREPL駆動開発
マイクロフレームワークEnkan(とKotowari)ではじめるREPL駆動開発
Javaの進化にともなう運用性の向上はシステム設計にどういう変化をもたらすのか
Javaの進化にともなう運用性の向上はシステム設計にどういう変化をもたらすのか
Antifragile Clojure
Antifragile Clojure
プログラミング言語Clojureのニャンパスでの活用事例
プログラミング言語Clojureのニャンパスでの活用事例
入門Transducers
入門Transducers
From Java To Clojure
From Java To Clojure
会社でClojure使ってみて分かったこと
会社でClojure使ってみて分かったこと
Ähnlich wie Clojure入門
Clojure Intro
Clojure Intro
thnetos
Clojure for Java developers - Stockholm
Clojure for Java developers - Stockholm
Jan Kronquist
(first '(Clojure.))
(first '(Clojure.))
niklal
Lập trình Python cơ bản
Lập trình Python cơ bản
Nguyen Thi Lan Phuong
Groovy puzzlers по русски с Joker 2014
Groovy puzzlers по русски с Joker 2014
Baruch Sadogursky
Refactoring to Macros with Clojure
Refactoring to Macros with Clojure
Dmitry Buzdin
Programming Lisp Clojure - 2장 : 클로저 둘러보기
Programming Lisp Clojure - 2장 : 클로저 둘러보기
JangHyuk You
Introduction to Groovy
Introduction to Groovy
André Faria Gomes
Java VS Python
Java VS Python
Simone Federici
Corona sdk
Corona sdk
Dom Dominic Toretto
Groovy puzzlers jug-moscow-part 2
Groovy puzzlers jug-moscow-part 2
Evgeny Borisov
Introduction to Python
Introduction to Python
UC San Diego
The Ring programming language version 1.5 book - Part 3 of 31
The Ring programming language version 1.5 book - Part 3 of 31
Mahmoud Samir Fayed
The Ring programming language version 1.10 book - Part 54 of 212
The Ring programming language version 1.10 book - Part 54 of 212
Mahmoud Samir Fayed
The Ring programming language version 1.5.2 book - Part 26 of 181
The Ring programming language version 1.5.2 book - Part 26 of 181
Mahmoud Samir Fayed
The Ring programming language version 1.5.2 book - Part 14 of 181
The Ring programming language version 1.5.2 book - Part 14 of 181
Mahmoud Samir Fayed
GE8151 Problem Solving and Python Programming
GE8151 Problem Solving and Python Programming
Muthu Vinayagam
Functional Programming with Groovy
Functional Programming with Groovy
Arturo Herrero
Hw09 Hadoop + Clojure
Hw09 Hadoop + Clojure
Cloudera, Inc.
JJUG CCC 2011 Spring
JJUG CCC 2011 Spring
Kiyotaka Oku
Ähnlich wie Clojure入門
(20)
Clojure Intro
Clojure Intro
Clojure for Java developers - Stockholm
Clojure for Java developers - Stockholm
(first '(Clojure.))
(first '(Clojure.))
Lập trình Python cơ bản
Lập trình Python cơ bản
Groovy puzzlers по русски с Joker 2014
Groovy puzzlers по русски с Joker 2014
Refactoring to Macros with Clojure
Refactoring to Macros with Clojure
Programming Lisp Clojure - 2장 : 클로저 둘러보기
Programming Lisp Clojure - 2장 : 클로저 둘러보기
Introduction to Groovy
Introduction to Groovy
Java VS Python
Java VS Python
Corona sdk
Corona sdk
Groovy puzzlers jug-moscow-part 2
Groovy puzzlers jug-moscow-part 2
Introduction to Python
Introduction to Python
The Ring programming language version 1.5 book - Part 3 of 31
The Ring programming language version 1.5 book - Part 3 of 31
The Ring programming language version 1.10 book - Part 54 of 212
The Ring programming language version 1.10 book - Part 54 of 212
The Ring programming language version 1.5.2 book - Part 26 of 181
The Ring programming language version 1.5.2 book - Part 26 of 181
The Ring programming language version 1.5.2 book - Part 14 of 181
The Ring programming language version 1.5.2 book - Part 14 of 181
GE8151 Problem Solving and Python Programming
GE8151 Problem Solving and Python Programming
Functional Programming with Groovy
Functional Programming with Groovy
Hw09 Hadoop + Clojure
Hw09 Hadoop + Clojure
JJUG CCC 2011 Spring
JJUG CCC 2011 Spring
Kürzlich hochgeladen
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
ThousandEyes
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
Sandro Moreira
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
Product Anonymous
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
apidays
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
apidays
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
UiPathCommunity
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
The Digital Insurer
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
Zilliz
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
danishmna97
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
WSO2
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
DianaGray10
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
MadyBayot
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
Andrey Devyatkin
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
Nanddeep Nachan
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
Remote DBA Services
Architecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
rafiqahmad00786416
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
Khushali Kathiriya
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
Remote DBA Services
Kürzlich hochgeladen
(20)
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
Architecting Cloud Native Applications
Architecting Cloud Native Applications
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
Clojure入門
1.
2.
3.
4.
5.
6.
7.
8.
(defun hello (name)
(print (concatenate 'string "Hello, " name "!"))) (hello "Common Lisp") (define (hello name) (print "Hello, " name "!")) (hello "Scheme") (defn hello [name] (print (str "Hello, " name "!"))) (hello "Clojure")
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
def hello(name) puts
"Hello, " + name + "!" end hello "Ruby" (defn hello [name] (print (str "Hello, " name "!"))) (hello "Clojure")
21.
def hello(name) puts
"Hello, " + name + "!" end hello "Ruby" (defn hello [name] (print (str "Hello, " name "!"))) (hello "Clojure")
22.
(1 2 3) ["apple"
"google" "microsoft"] {:artist "Michael Jackson" :song "Thriller"}
23.
person.getAddress().getZipCode() (.getZipCode (.getAddress person))
24.
person.getAddress().getZipCode() (.getZipCode (.getAddress person))
25.
person.getAddress().getZipCode() (.getZipCode (.getAddress person))
26.
person.getAddress().getZipCode() (.getZipCode (.getAddress person))
27.
person.getAddress().getZipCode() (.getZipCode (.getAddress person))
28.
person.getAddress().getZipCode() (.. person getAddress
getZipCode)
29.
(car (list 1
3 5 7 9)) ; -> 1 (cdr (list 1 3 5 7 9)) ; -> (3 5 7 9)
30.
(first (list 1
3 5 7 9)) ; -> 1 (second (list 1 3 5 7 9)) ; -> 3 (rest (list 1 3 5 7 9)) ; -> (3 5 7 9)
31.
32.
33.
#!/bin/sh java -cp /path/to/clojure.jar
clojure.main $* $ clj Clojure 1.2.0-master-SNAPSHOT user=> $ clj hello.clj Hello, Clojure!
34.
35.
$ curl -O
http://github.com/technomancy/leiningen/raw/stable/bin/lein $ mv lein ~/bin/ $ chmod +x ~/bin/lein $ lein self-install $ lein repl Clojure 1.1.0-master-SNAPSHOT user=>
36.
user=> (doc first) (doc
first) ------------------------- clojure.core/first ([coll]) Returns the first item in the collection. Calls seq on its argument. If coll is nil, returns nil.
37.
user=> (use 'clojure.contrib.repl-utils) (use
'clojure.contrib.repl-utils) nil user=> (source +) (source +) (defn + "Returns the sum of nums. (+) returns 0." {:inline (fn [x y] `(. clojure.lang.Numbers (add ~x ~y))) :inline-arities #{2}} ...
38.
user=> (use 'clojure.contrib.repl-utils) (use
'clojure.contrib.repl-utils) nil user=> (show java.net.InetAddress) (show java.net.InetAddress) === public java.net.InetAddress === [ 0] static getAllByName : InetAddress[] (String) [ 1] static getByAddress : InetAddress (String,byte[]) [ 2] static getByAddress : InetAddress (byte[]) ...
39.
40.
$ cat abc.txt abc defg Clojure
41.
user=> (slurp "abc.txt") "abcndefgnnClojure
n" user=> (print (slurp "abc.txt")) abc defg Clojure nil user=>
42.
user=> (use '[clojure.contrib.duck-streams
:only (read-lines)]) nil user=> (doseq [line (read-lines "abc.txt")] (println line)) abc defg Clojure nil
43.
for (String line
: lines) { System.out.println(line); } (doseq [line lines] (println line))
44.
user=> (use '[clojure.contrib.duck-streams
:only (reader)]) nil user=> (doseq [line (line-seq (reader (java.io.File. "abc.txt")))] (println line)) abc defg Clojure nil
45.
user=> (with-open [rdr
(java.io.BufferedReader. (java.io.FileReader. "abc.txt"))] (doseq [line (line-seq rdr)] (println line))) abc defg Clojure nil
Hinweis der Redaktion
Jetzt herunterladen