about summary refs log tree commit diff
path: root/doc/tutorial-container.md
AgeCommit message (Collapse)AuthorLines
2013-08-15update the iterator tutorialDaniel Micay-15/+11
2013-08-15std: Move the iterator param on FromIterator and Extendable to the method.Huon Wilson-2/+2
If they are on the trait then it is extremely annoying to use them as generic parameters to a function, e.g. with the iterator param on the trait itself, if one was to pass an Extendable<int> to a function that filled it either from a Range or a Map<VecIterator>, one needs to write something like: fn foo<E: Extendable<int, Range<int>> + Extendable<int, Map<&'self int, int, VecIterator<int>>> (e: &mut E, ...) { ... } since using a generic, i.e. `foo<E: Extendable<int, I>, I: Iterator<int>>` means that `foo` takes 2 type parameters, and the caller has to specify them (which doesn't work anyway, as they'll mismatch with the iterators used in `foo` itself). This patch changes it to: fn foo<E: Extendable<int>>(e: &mut E, ...) { ... }
2013-08-03make `for` parse as `foreach` doesDaniel Micay-8/+7
Closes #6997
2013-08-01migrate many `for` loops to `foreach`Daniel Micay-9/+8
2013-07-24improve container/iterator tutorialDaniel Micay-5/+7
2013-07-24document random-access iteratorsDaniel Micay-0/+28
2013-07-24expand on double-ended iterators in the tutorialDaniel Micay-6/+22
2013-07-12extend the iterator tutorialDaniel Micay-0/+101
documents conversion, size hints and double-ended iterators and adds more of the traits to the prelude
2013-07-04Implement consuming iterators for ~[], remove vec::{consume, ↵Huon Wilson-1/+1
consume_reverse, map_consume}.
2013-06-28add a tutorial on containers and iteratorsDaniel Micay-0/+207