Skip to content

Instantly share code, notes, and snippets.

View smvv's full-sized avatar

Sander Mathijs van Veen smvv

View GitHub Profile
@smvv
smvv / linked_list.rs
Last active December 19, 2015 17:09 — forked from jasom/gist:5988857
use std::io;
use std::util;
enum List {
Cons(uint,~List),
Nil()
}
fn cons(x : uint, l : ~List) -> ~List{
return ~Cons(x,l);