moved collections from libextra into libcollections
This commit is contained in:
parent
87fe3ccf09
commit
d81bb441da
36 changed files with 117 additions and 72 deletions
|
|
@ -9,9 +9,10 @@
|
|||
// except according to those terms.
|
||||
|
||||
extern mod extra;
|
||||
extern mod collections;
|
||||
|
||||
use extra::time;
|
||||
use extra::treemap::TreeMap;
|
||||
use collections::TreeMap;
|
||||
use std::hashmap::{HashMap, HashSet};
|
||||
use std::os;
|
||||
use std::rand::{Rng, IsaacRng, SeedableRng};
|
||||
|
|
|
|||
|
|
@ -11,9 +11,10 @@
|
|||
// except according to those terms.
|
||||
|
||||
extern mod extra;
|
||||
extern mod collections;
|
||||
|
||||
use extra::bitv::BitvSet;
|
||||
use extra::treemap::TreeSet;
|
||||
use collections::bitv::BitvSet;
|
||||
use collections::TreeSet;
|
||||
use std::hashmap::HashSet;
|
||||
use std::os;
|
||||
use std::rand;
|
||||
|
|
|
|||
|
|
@ -11,8 +11,9 @@
|
|||
// Microbenchmark for the smallintmap library
|
||||
|
||||
extern mod extra;
|
||||
extern mod collections;
|
||||
|
||||
use extra::smallintmap::SmallIntMap;
|
||||
use collections::SmallIntMap;
|
||||
use std::os;
|
||||
use std::uint;
|
||||
|
||||
|
|
|
|||
|
|
@ -11,8 +11,9 @@
|
|||
#[feature(managed_boxes)];
|
||||
|
||||
extern mod extra;
|
||||
extern mod collections;
|
||||
|
||||
use extra::list::{List, Cons, Nil};
|
||||
use collections::list::{List, Cons, Nil};
|
||||
use extra::time::precise_time_s;
|
||||
use std::os;
|
||||
use std::task;
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern mod extra;
|
||||
use extra::bitv::Bitv;
|
||||
extern mod collections;
|
||||
use collections::Bitv;
|
||||
|
||||
fn bitv_test() {
|
||||
let mut v1 = ~Bitv::new(31, false);
|
||||
|
|
|
|||
|
|
@ -10,9 +10,9 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern mod extra;
|
||||
use extra::ringbuf::RingBuf;
|
||||
use extra::container::Deque;
|
||||
extern mod collections;
|
||||
use collections::RingBuf;
|
||||
use collections::Deque;
|
||||
|
||||
pub fn main() {
|
||||
let mut q = RingBuf::new();
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern mod extra;
|
||||
use extra::list;
|
||||
extern mod collections;
|
||||
use collections::list;
|
||||
|
||||
#[deriving(Clone)]
|
||||
enum foo {
|
||||
|
|
|
|||
|
|
@ -12,9 +12,9 @@
|
|||
|
||||
#[feature(managed_boxes)];
|
||||
|
||||
extern mod extra;
|
||||
extern mod collections;
|
||||
|
||||
use extra::list::{List, Cons, Nil, head, is_empty};
|
||||
use collections::list::{List, Cons, Nil, head, is_empty};
|
||||
|
||||
fn pure_length_go<T:Clone>(ls: @List<T>, acc: uint) -> uint {
|
||||
match *ls { Nil => { acc } Cons(_, tl) => { pure_length_go(tl, acc + 1u) } }
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern mod extra;
|
||||
extern mod collections;
|
||||
|
||||
use std::clone::{Clone, DeepClone};
|
||||
use std::cmp::{TotalEq, Ord, TotalOrd, Equiv};
|
||||
|
|
@ -18,7 +18,7 @@ use std::default::Default;
|
|||
use std::send_str::{SendStr, SendStrOwned, SendStrStatic};
|
||||
use std::str::Str;
|
||||
use std::to_str::ToStr;
|
||||
use self::extra::treemap::TreeMap;
|
||||
use self::collections::TreeMap;
|
||||
use std::option::Some;
|
||||
|
||||
pub fn main() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue