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
- Scala
- ChromeTab
- template
- sha256
- kotlin
- Clojure
- traits
- Reflect
- design pattern
- stringprintf
- async
- Chrono
- web
- SHA1
- AES
- SHA512
- CustomTab
- Android
- type_traits
- sprintf
- Functional
- Observer
- haskell
- program
- go
- RAII
- coroutines
- c++
- WebView
- ranges
Archives
- Today
- Total
목록haskell (2)
프로그래밍 검색 블로그
함수형 프로그래밍 체이닝
1부터 10까지 원소들에 대해서2를 곱하고곱한 원소들에 대해서 10보다 큰 원소들만 추려내어제곱근을 구해서 출력한다. 하스켈1show $ map sqrt $ filter (>10) $ map (*2) [1..10]cs 코틀린1(1..10).map { it * 2 }.filter { it > 10 }.map { Math.sqrt(it.toDouble()) } .forEach(::println)cs C++ 1234567#define lambda1(__TYPE__,__CODE_BLOCK__) [=](__TYPE__ $0){return __CODE_BLOCK__;} cout
연습장
2017. 10. 14. 16:47