add IteratorUtil to the prelude

This commit is contained in:
Daniel Micay 2013-06-11 23:54:05 -04:00
parent 38e05747b5
commit 585f5f7f79
115 changed files with 6 additions and 174 deletions

View file

@ -21,7 +21,6 @@ use extra::arc;
use extra::time;
use extra::deque::Deque;
use extra::par;
use std::iterator::IteratorUtil;
use std::hashmap::HashSet;
use std::int::abs;
use std::io;

View file

@ -1,4 +1,3 @@
use std::iterator::*;
use std::from_str::FromStr;
use std::i32::range;
use std::os;

View file

@ -1,4 +1,3 @@
use std::iterator::IteratorUtil;
use std::cast::transmute;
use std::from_str::FromStr;
use std::libc::{FILE, STDOUT_FILENO, c_int, fdopen, fputc, fputs, fwrite, size_t};

View file

@ -1,4 +1,3 @@
use std::iterator::IteratorUtil;
use std::f64;
use std::from_str::FromStr;
use std::os;

View file

@ -1,4 +1,3 @@
use std::iterator::IteratorUtil;
use std::f64;
use std::from_str::FromStr;
use std::iter::ExtendedMutableIter;

View file

@ -14,7 +14,6 @@ extern mod extra;
use std::io::{ReaderUtil, WriterUtil};
use std::io;
use std::iterator::IteratorUtil;
use std::os;
use std::str;
use std::u8;

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use std::iterator::IteratorUtil;
fn compute1() -> float {
let v = ~[0f, 1f, 2f, 3f];

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use std::iterator::IteratorUtil;
fn main() {
let needlesArr: ~[char] = ~['a', 'f'];
do needlesArr.iter().fold() |x, y| {

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use std::iterator::*;
fn main() {
let mut xs = ~[1, 2, 3, 4];

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use std::iterator::IteratorUtil;
pub fn main() {
let v = ~[-1f, 0f, 1f, 2f, 3f];

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use std::iterator::IteratorUtil;
pub fn main() {
fn f(i: &fn() -> uint) -> uint { i() }
let v = ~[-1f, 0f, 1f, 2f, 3f];

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use std::iterator::IteratorUtil;
pub fn main() {
fn f(i: uint) -> uint { i }
let v = ~[-1f, 0f, 1f, 2f, 3f];

View file

@ -8,7 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use std::iterator::IteratorUtil;
use std::vec;
fn w_semi(v: ~[int]) -> int {

View file

@ -8,7 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use std::iterator::IteratorUtil;
use std::vec;
// Check usage and precedence of block arguments in expressions:

View file

@ -14,7 +14,6 @@
extern mod extra;
use std::iterator::IteratorUtil;
use std::io::ReaderUtil;
use std::io;
use std::str;

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use std::iterator::IteratorUtil;
pub fn main() {
let x = ~[1, 2, 3];
let mut y = 0;

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use std::iterator::IteratorUtil;
fn test1() {
let mut ints = [0, ..32];
ints[0] += 1;

View file

@ -10,7 +10,6 @@
// xfail-fast
use std::iterator::IteratorUtil;
use std::cmp::Eq;
use std::vec;

View file

@ -13,8 +13,6 @@
extern mod extra;
use std::iterator::IteratorUtil;
#[test]
#[ignore(cfg(ignorecfg))]
fn shouldignore() {

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use std::iterator::IteratorUtil;
pub fn main() {
let yen: char = '¥'; // 0xa5
let c_cedilla: char = 'ç'; // 0xe7

View file

@ -10,7 +10,6 @@
extern mod extra;
use std::iterator::IteratorUtil;
use std::str;
use std::vec;