Daniel Micay
66c2965b04
iter: fix RangeInclusive's DoubleEndedIterator
2013-09-15 00:39:34 -04:00
Daniel Micay
bf7587f551
iter: fix range_inclusive when start > stop
2013-09-15 00:32:15 -04:00
Daniel Micay
1f961c74c4
fix range_step{,_inclusive} with negative step
2013-09-15 00:32:07 -04:00
Daniel Micay
a18038f3b2
iter: add RangeStep and RangeStepInclusive
2013-09-14 18:26:21 -04:00
Daniel Micay
3aead52586
iter: move Counter impl to the proper place
2013-09-14 16:51:55 -04:00
Daniel Micay
10c8978edb
iter: replace comment with a docstring
2013-09-14 16:51:33 -04:00
Daniel Micay
561f1b0063
iter: fix range docstrings
2013-09-14 16:33:19 -04:00
Erick Tryzelaar
7f9c5aae9e
std: Restore Option::chain{,_mut}_ref as and_then{,_mut}_ref
2013-09-12 18:54:28 -07:00
Erick Tryzelaar
38f97ea103
std: Rename {Option,Result}::chain{,_err}* to {and_then,or_else}
2013-09-12 18:54:13 -07:00
Daniel Micay
6919cf5fe1
rename std::iterator to std::iter
...
The trait will keep the `Iterator` naming, but a more concise module
name makes using the free functions less verbose. The module will define
iterables in addition to iterators, as it deals with iteration in
general.
2013-09-09 03:21:46 -04:00
Jason Fager
dc30005ad8
Remove the iter module.
...
Moves the Times trait to num while the question of whether it should
exist at all gets hashed out as a completely separate question.
2013-08-29 01:27:24 -04:00
blake2-ppc
78cde5b9fb
std: Change Times trait to use do instead of for
...
Change the former repetition::
for 5.times { }
to::
do 5.times { }
.times() cannot be broken with `break` or `return` anymore; for those
cases, use a numerical range loop instead.
2013-08-01 16:54:22 +02:00
Jordi Boggiano
3fe05a987c
Move most iter functionality to extra, fixes #7343
2013-07-01 01:50:40 +02:00
Daniel Micay
d2e9912aea
vec: remove BaseIter implementation
...
I removed the `static-method-test.rs` test because it was heavily based
on `BaseIter` and there are plenty of other more complex uses of static
methods anyway.
2013-06-23 02:05:20 -04:00
Graydon Hoare
d904c72af8
replace #[inline(always)] with #[inline]. r=burningtree.
2013-06-18 14:48:48 -07:00
Daniel Micay
585f5f7f79
add IteratorUtil to the prelude
2013-06-14 23:15:42 -04:00
Huon Wilson
98ba91f81b
remove unused import warnings
2013-06-09 02:22:23 +10:00
Marvin Löbel
cac4891154
Fixups
2013-06-06 22:40:35 +02:00
Marvin Löbel
070015468d
Removed IteratorUtil::to_vec and iter::to_vec
2013-06-06 22:11:48 +02:00
Marvin Löbel
af2086a2f1
Added iter::FromIter
2013-06-06 22:11:47 +02:00
Alex Crichton
007651cd26
Require documentation by default for libstd
...
Adds documentation for various things that I understand.
Adds #[allow(missing_doc)] for lots of things that I don't understand.
2013-05-30 01:02:55 -05:00
Patrick Walton
206ab89629
librustc: Stop reexporting the standard modules from prelude.
2013-05-29 19:04:53 -07:00
Daniel Micay
0d5fdce82e
syntax highlight code examples in docstrings
2013-05-27 14:47:21 -04:00
Patrick Walton
0c820d4123
libstd: Rename libcore to libstd and libstd to libextra; update makefiles.
...
This only changes the directory names; it does not change the "real"
metadata names.
2013-05-22 21:57:05 -07:00