| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2012-07-05 | A new `times` method on numeric types | Ben 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-03 | core: Convert iter::repeat to the for protocol | Brian Anderson | -2/+2 | |
| 2012-07-01 | Convert to new closure syntax | Brian Anderson | -16/+16 | |
| 2012-06-30 | Eliminate usages of old sugared call syntax | Brian Anderson | -5/+5 | |
| 2012-06-29 | Switch the compiler over to using ~[] notation instead of []/~. Closes #2759. | Michael Sullivan | -32/+32 | |
| 2012-06-28 | Add position() to iter/iter-trait | Ben Blum | -0/+14 | |
| 2012-06-27 | Removed pretty much all the vector+ from core (issue #2719) | Eric Holk | -1/+1 | |
| 2012-06-25 | Make vectors uglier ([]/~). Sorry. Should be temporary. Closes #2725. | Michael Sullivan | -32/+32 | |
| 2012-06-21 | Tag all remaining FIXMEs with bugs. Install rule in tidy script to enforce this. | Graydon Hoare | -4/+4 | |
| 2012-06-07 | Use #[cfg(unix)] and #[cfg(windows)] everywhere | Brian Anderson | -2/+2 | |
| 2012-04-27 | new, simpler approach to the iter library | Niko Matsakis | -83/+51 | |
| 2012-04-13 | change to use && mode (can't move from upvar) | Niko Matsakis | -5/+5 | |
| relevant to #1965 | ||||
| 2012-04-06 | Re-rename option functions | Tim 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-02 | Rename some core::option functions | Tim 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-27 | core: Rename iter::to_list to to_vec. Closes #2056 | Brian Anderson | -11/+11 | |
| 2012-03-23 | Implement new inference algorithm. | Niko Matsakis | -2/+2 | |
| 2012-03-22 | make --enforce-mut-vars always on, add mut annotations to remaining files | Niko Matsakis | -3/+2 | |
| 2012-03-15 | Comments only: associate core::iter FIXMEs with issue numbers | Tim Chevalier | -0/+3 | |
| 2012-03-07 | add mutability annotations to libcore | Niko Matsakis | -4/+4 | |
| 2012-02-12 | core: Add iter::filter_map | Brian Anderson | -0/+25 | |
| 2012-02-12 | core: Add iterable implementation for strings | Brian Anderson | -0/+6 | |
| 2012-02-12 | core: Rename iter::reverse to iter::reversed for consistency with vec mod | Brian Anderson | -4/+4 | |
| 2012-02-12 | core: Implement foldl/r without copying the accumulator | Brian Anderson | -12/+18 | |
| 2012-02-12 | core: Add iter::foldr | Brian Anderson | -0/+19 | |
| 2012-02-12 | core: Add iter::count | Brian Anderson | -0/+15 | |
| 2012-02-12 | core: Add iter::reverse | Brian Anderson | -0/+10 | |
| 2012-02-12 | core: Add iter::min/max | Brian Anderson | -0/+45 | |
| 2012-01-31 | add iter library in preliminary form (limited syntactic support) | Niko Matsakis | -0/+171 | |
