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
- Android
- program
- web
- go
- stringprintf
- sprintf
- ChromeTab
- Functional
- SHA512
- Clojure
- kotlin
- coroutines
- SHA1
- c++
- Scala
- type_traits
- template
- traits
- ranges
- Observer
- async
- WebView
- Chrono
- CustomTab
- Reflect
- AES
- haskell
- design pattern
- sha256
- RAII
Archives
- Today
- Total
프로그래밍 검색 블로그
C++ ranges view::tail 본문
haskell
1 2 | let l = [0,1,2,3] print(tail l) // [1,2,3] | cs |
C++
1 2 3 | vector<int> c = view::iota(0, 4); cout << view::all(c | view::tail) << endl; | cs |
출력은 둘다 [1,2,3]
1 2 3 4 | vector<int> c = view::iota(0, 4) | view::tail; cout << view::all(c) << endl; | cs |
생성할때 바로 operator | 도 가능
'C++ ranges' 카테고리의 다른 글
C++ ranges view::c_str (0) | 2017.10.08 |
---|---|
C++ ranges view::join (flatMap) (0) | 2017.10.08 |
C++ ranges view::cycle (0) | 2017.10.08 |
C++ ranges view::take (0) | 2017.10.08 |
C++ ranges yield_if (0) | 2017.10.08 |
Comments