Notice
														
												
											
												
												
													Recent Posts
													
											
												
												
													Recent Comments
													
											
												
												
													Link
													
											
									| 일 | 월 | 화 | 수 | 목 | 금 | 토 | 
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 | 
| 9 | 10 | 11 | 12 | 13 | 14 | 15 | 
| 16 | 17 | 18 | 19 | 20 | 21 | 22 | 
| 23 | 24 | 25 | 26 | 27 | 28 | 29 | 
| 30 | 
													Tags
													
											
												
												- RAII
 - Observer
 - coroutines
 - Functional
 - haskell
 - kotlin
 - sprintf
 - Chrono
 - SHA1
 - CustomTab
 - ChromeTab
 - go
 - stringprintf
 - Scala
 - ranges
 - Reflect
 - AES
 - program
 - SHA512
 - web
 - WebView
 - type_traits
 - template
 - traits
 - design pattern
 - async
 - Clojure
 - sha256
 - Android
 - c++
 
													Archives
													
											
												
												- Today
 
- Total
 
프로그래밍 검색 블로그
clojure 본문
원래 lisp형태처럼 괄호가 있는 언어는 별로 선호하지 않았지만
clojure의 필요성에 따라서 배우게 되었다
1  | (println "hello world")   | cs | 
기본적인 C 스타일 문법과는 약간 다른데
이렇게 작성했던 구문을
1 2 3  |     for(int i = 0; i < 5; i++) {         printf("%d\n", i);     }  | cs | 
클로저에서는 이렇게 작성할수 있다
1 2 3 4 5  | (defn p [x]       (println x)       (if (< x 5) (p (+ x 1)))) (p 0)  | cs | 
'clojure기초' 카테고리의 다른 글
| clojure 기초 반복 loop (0) | 2017.10.21 | 
|---|---|
| clojure 변수 선언 (0) | 2017.10.21 | 
| clojure 함수 3 (0) | 2017.10.21 | 
| clojure 함수 2 (0) | 2017.10.21 | 
| clojure 함수1 (0) | 2017.10.21 | 
			  Comments