Skip to content
This repository was archived by the owner on Dec 9, 2018. It is now read-only.

japaric-archived/seq.rs

Repository files navigation

DEPRECATED

Reason: There better alternatives in the market, to name a few:

This library won't receive further fixes nor upgrades.


Build Status

Macro sugar to initialize almost any collection (Vec, HashMap, etc).

Example

#![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);
}

License

seq.rs is dual licensed under the Apache 2.0 license and the MIT license.

See LICENSE-APACHE and LICENSE-MIT for more details.

About

[DEPRECATED] Macro sugar to initialize almost any collection

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •