Reason: There better alternatives in the market, to name a few:
This library won't receive further fixes nor upgrades.
Macro sugar to initialize almost any collection (Vec
, HashMap
, etc).
#![feature(phase)]
extern crate seq;
#[phase(plugin)]
extern crate seq_macros;
use std::collections::HashMap;
fn main() {
let v: Vec<u8> = seq![1, 2, 3];
let m: HashMap<char, String> = seq!{
'a' => "apple".to_string(),
'b' => "banana".to_string(),
'c' => "coconut".to_string(),
};
println!("{}", v);
println!("{}", m);
}
seq.rs is dual licensed under the Apache 2.0 license and the MIT license.
See LICENSE-APACHE and LICENSE-MIT for more details.