about summary refs log tree commit diff
path: root/src/libcore/iter.rs
AgeCommit message (Collapse)AuthorLines
2012-09-25libcore: De-mode at_vecPatrick Walton-1/+1
2012-09-23Make it illegal to use modes in a fn signature with providingNiko Matsakis-3/+3
an explicit variable name. (Step one to changing the defaults) First step to #3535
2012-09-21De-mode vec::map, vec::eachi, vec::rev_each, vec::rev_eachiNiko Matsakis-6/+6
2012-09-19demode the each() method on vec and other iterables.Niko Matsakis-16/+16
2012-09-19core: Clean up crate docs and give all mods a brief descriptionBrian Anderson-0/+6
2012-09-19De-mode vec::each() and many of the str iteration routinesNiko Matsakis-143/+0
Note that the method foo.each() is not de-moded, nor the other vec routines.
2012-09-13make iter::position() not require EqNiko Matsakis-2/+3
2012-09-10rustc: Make shape-based compare glue never called for comparison operators.Patrick Walton-1/+1
Only called for string patterns.
2012-09-10Make more moves explicit in libcoreTim Chevalier-1/+1
2012-09-07Convert all kind bounds to camel case. Remove send, owned keywords.Brian Anderson-12/+12
2012-09-02core: deny(vecs_implicity_copyable)Brian Anderson-1/+1
2012-08-29rustc: Make `<` and `=` into traitsPatrick Walton-4/+12
2012-08-26Camel case the option typeBrian Anderson-24/+24
2012-08-24Add a Buildable interface for constructing general sequences. Work on #2921.Michael Sullivan-0/+122
2012-08-23`m1!{...}` -> `m1!(...)`Paul Stansifer-3/+3
2012-08-23Make a bunch more of the iteration functions/methods marked pure. Closes #3253.Michael Sullivan-46/+53
2012-08-15Convert more core types to camel caseBrian Anderson-18/+18
2012-08-06Convert alt to match. Stop parsing altBrian Anderson-4/+4
2012-08-05Switch alts to use arrowsBrian Anderson-8/+8
2012-08-01Convert ret to returnBrian Anderson-14/+14
2012-07-31Change remaining "iface" occurrences to "trait"; deprecate "iface"Lindsey Kuper-3/+3
2012-07-30Change syntax extension syntax: `#m[...]` -> `m!{...}`.Paul Stansifer-3/+3
2012-07-24Add `5.timesi() |idx| { ... }`Paul Stansifer-0/+3
2012-07-17rustc: Implement and enforce instance coherencePatrick Walton-0/+10
2012-07-14Move the world over to using the new style string literals and types. Closes ↵Michael Sullivan-2/+2
#2907.
2012-07-11core: Newtype a bunch of types in libcorePatrick Walton-0/+9
2012-07-05A new `times` method on numeric typesBen Striegel-0/+4
This method is intended to elegantly subsume two common iteration functions. The first is `iter::range`, which is used identically to the method introduced in this commit, but currently works only on uints. The second is a common case of `{int, i8, uint, etc.}::range`, in the case where the inductive variable is ignored. Compare the usage of the three: ``` for iter::range(100u) { // do whatever } for int::range(0, 100) |_i| { // do whatever } for 100.times { // do whatever } ``` I feel that the latter reads much more nicely than the first two approaches, and unlike the first two the new method allows the user to ignore the specific type of the number (ineed, if we're throwing away the inductive variable, who cares what type it is?). A minor benefit is that this new method will be somewhat familiar to users of Ruby, from which we borrow the name "times".
2012-07-03core: Convert iter::repeat to the for protocolBrian Anderson-2/+2
2012-07-01Convert to new closure syntaxBrian Anderson-16/+16
2012-06-30Eliminate usages of old sugared call syntaxBrian Anderson-5/+5
2012-06-29Switch the compiler over to using ~[] notation instead of []/~. Closes #2759.Michael Sullivan-32/+32
2012-06-28Add position() to iter/iter-traitBen Blum-0/+14
2012-06-27Removed pretty much all the vector+ from core (issue #2719)Eric Holk-1/+1
2012-06-25Make vectors uglier ([]/~). Sorry. Should be temporary. Closes #2725.Michael Sullivan-32/+32
2012-06-21Tag all remaining FIXMEs with bugs. Install rule in tidy script to enforce this.Graydon Hoare-4/+4
2012-06-07Use #[cfg(unix)] and #[cfg(windows)] everywhereBrian Anderson-2/+2
2012-04-27new, simpler approach to the iter libraryNiko Matsakis-83/+51
2012-04-13change to use && mode (can't move from upvar)Niko Matsakis-5/+5
relevant to #1965
2012-04-06Re-rename option functionsTim Chevalier-1/+1
get_with_default (nee from_maybe) => get_default with_option (nee maybe) => map_default with_option_do (nee may) => iter As per discussion of 21be1379d561b6679a8a2ea47dce88f948c5acca
2012-04-02Rename some core::option functionsTim Chevalier-1/+1
from_maybe => get_with_default maybe => with_option may => with_option_do I know these names are kind of ridiculous, but it's the best I could think of. Feel free to bikeshed. Closes #2081
2012-03-27core: Rename iter::to_list to to_vec. Closes #2056Brian Anderson-11/+11
2012-03-23Implement new inference algorithm.Niko Matsakis-2/+2
2012-03-22make --enforce-mut-vars always on, add mut annotations to remaining filesNiko Matsakis-3/+2
2012-03-15Comments only: associate core::iter FIXMEs with issue numbersTim Chevalier-0/+3
2012-03-07add mutability annotations to libcoreNiko Matsakis-4/+4
2012-02-12core: Add iter::filter_mapBrian Anderson-0/+25
2012-02-12core: Add iterable implementation for stringsBrian Anderson-0/+6
2012-02-12core: Rename iter::reverse to iter::reversed for consistency with vec modBrian Anderson-4/+4
2012-02-12core: Implement foldl/r without copying the accumulatorBrian Anderson-12/+18
2012-02-12core: Add iter::foldrBrian Anderson-0/+19