Daniel Micay
|
073225572a
|
iterator: reword docstring
|
2013-05-18 04:44:44 -04:00 |
|
Daniel Micay
|
883d583faa
|
iterator: reuse iter::to_vec, and use &mut self
|
2013-05-18 04:37:48 -04:00 |
|
Daniel Micay
|
ea8a55b821
|
iterator: make nth and last return Option
There isn't a way to take the length of any iterator, so failing on a
zero length would make these much less useful.
|
2013-05-18 04:35:58 -04:00 |
|
Daniel Micay
|
a9c465ce1f
|
iterator: remove first
it's the same as `next.unwrap()`, but there's no way to check the
length of an iterator so this isn't a good pattern
|
2013-05-18 04:35:48 -04:00 |
|
gifnksm
|
3122d8027b
|
libcore: Add IteratorUtil::all , any method
|
2013-05-18 00:24:43 +09:00 |
|
gifnksm
|
54fbac505e
|
libcore: Add AdditiveIterator , MultiplicativeIterator , OrdIterator
|
2013-05-18 00:18:09 +09:00 |
|
gifnksm
|
b4cea351ba
|
libcore: Add IteratorUtil::fold , count
|
2013-05-18 00:17:56 +09:00 |
|
gifnksm
|
02945f1cb1
|
libcore: Add IteratoUtil::nth , first , last method
|
2013-05-17 23:49:11 +09:00 |
|
gifnksm
|
9ffbe69234
|
libcore: Add IteratorUtil::filter_map method
|
2013-05-17 23:00:48 +09:00 |
|
gifnksm
|
f7e58ebe84
|
libcore: Add IteratorUtil::to_vec() method
|
2013-05-17 22:54:32 +09:00 |
|
Alex Crichton
|
28256052a4
|
core: Use the new for protocol
|
2013-05-10 02:46:18 -04:00 |
|
Daniel Micay
|
0c02d0f92e
|
rename iter::iter_to_vec to iter::to_vec
it's silly to duplicate the namespace in the fn name
|
2013-05-08 18:49:32 -04:00 |
|
gifnksm
|
8a28970ed3
|
libcore: Make ChainIterator take two different-typed Iterator s.
|
2013-05-02 11:10:13 +09:00 |
|
Daniel Micay
|
11d04d452f
|
add a Counter iterator
|
2013-04-24 19:57:02 -04:00 |
|
Huon Wilson
|
a0c2949e7c
|
libcore: add a ScanIterator, a generalisation of MapIterator to have internal state.
|
2013-04-20 19:18:52 +10:00 |
|
Daniel Micay
|
a2e5350284
|
iterator: add a bit of documentation
|
2013-04-19 12:42:59 -04:00 |
|
Daniel Micay
|
1d81b7b286
|
iterator: add a chain adaptor
|
2013-04-19 11:50:50 -04:00 |
|
Huon Wilson
|
90313b789c
|
libcore: add an UnfoldrIterator like Haskell's unfoldr
|
2013-04-19 10:37:15 -04:00 |
|
Daniel Micay
|
d7a2ae6c42
|
re-organize the iterator module a bit
|
2013-04-19 09:18:22 -04:00 |
|
Daniel Micay
|
ae1c9ebf3c
|
move iterator adaptor tests to iterator module
|
2013-04-19 09:01:40 -04:00 |
|
Daniel Micay
|
962a753890
|
takewhile -> take_while, dropwhile -> skip_while
|
2013-04-19 07:28:51 -04:00 |
|
Daniel Micay
|
0f85cf180a
|
iterator: add skip and take
|
2013-04-19 07:22:20 -04:00 |
|
Daniel Micay
|
a523abd75c
|
add dropwhile and takewhile iterators
|
2013-04-18 13:22:38 -04:00 |
|
Huon Wilson
|
0ff568a3c1
|
libcore: add an EnumerateIterator, like Python's enumerate .
|
2013-04-18 20:37:27 +10:00 |
|
Daniel Micay
|
f82c96446f
|
iterator: use an IteratorUtil trait
|
2013-04-15 21:35:41 -04:00 |
|
Daniel Micay
|
8bf9fc52f4
|
initial iterator object library
|
2013-04-13 05:51:14 -04:00 |
|