add IteratorUtil to the prelude
This commit is contained in:
parent
38e05747b5
commit
585f5f7f79
115 changed files with 6 additions and 174 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
use std::iterator::*;
|
||||
use std::from_str::FromStr;
|
||||
use std::i32::range;
|
||||
use std::os;
|
||||
|
|
|
|||
|
|
@ -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};
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
use std::iterator::IteratorUtil;
|
||||
use std::f64;
|
||||
use std::from_str::FromStr;
|
||||
use std::os;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
use std::iterator::IteratorUtil;
|
||||
use std::f64;
|
||||
use std::from_str::FromStr;
|
||||
use std::iter::ExtendedMutableIter;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
|
||||
|
|
|
|||
|
|
@ -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| {
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
extern mod extra;
|
||||
|
||||
use std::iterator::IteratorUtil;
|
||||
use std::io::ReaderUtil;
|
||||
use std::io;
|
||||
use std::str;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@
|
|||
|
||||
// xfail-fast
|
||||
|
||||
use std::iterator::IteratorUtil;
|
||||
use std::cmp::Eq;
|
||||
use std::vec;
|
||||
|
||||
|
|
|
|||
|
|
@ -13,8 +13,6 @@
|
|||
|
||||
extern mod extra;
|
||||
|
||||
use std::iterator::IteratorUtil;
|
||||
|
||||
#[test]
|
||||
#[ignore(cfg(ignorecfg))]
|
||||
fn shouldignore() {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@
|
|||
|
||||
extern mod extra;
|
||||
|
||||
use std::iterator::IteratorUtil;
|
||||
use std::str;
|
||||
use std::vec;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue