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
- traits
- kotlin
- Clojure
- ChromeTab
- web
- Reflect
- design pattern
- SHA512
- Scala
- SHA1
- WebView
- template
- sha256
- ranges
- haskell
- AES
- program
- RAII
- Functional
- Chrono
- stringprintf
- async
- Observer
- c++
- coroutines
- Android
- type_traits
- sprintf
- go
- CustomTab
Archives
- Today
- Total
프로그래밍 검색 블로그
함수형 피타고라스 삼각형 구하기 본문
하스켈
C++
ranges
1 2 3 4 5 6 7 | vector<std::tuple<int,int,int>> v = view::iota(1, 20) >>= [](int c){ return view::iota(1, c) >>= [=](int b){ return view::iota(b, c) >>= [=](int a){ return yield_if(a*a + b*b == c*c, std::make_tuple(a,b,c)); }; }; }; | cs |
'연습장' 카테고리의 다른 글
C++ optional (0) | 2017.10.15 |
---|---|
함수형 프로그래밍 체이닝 (0) | 2017.10.14 |
템플릿 메타 프로그래밍 소수 구하기 (0) | 2017.10.06 |
템플릿 메타 프로그래밍 피보나치 (0) | 2017.10.05 |
템플릿 메타 프로그래밍 최대공약수 최대공배수 (0) | 2017.10.05 |
Comments