Skip to content

Instantly share code, notes, and snippets.

@lkuper
Created June 5, 2012 22:51
Show Gist options
  • Select an option

  • Save lkuper/2878640 to your computer and use it in GitHub Desktop.

Select an option

Save lkuper/2878640 to your computer and use it in GitHub Desktop.
type circular_buf<T> = {start: uint,
end: uint,
buf: [mut T]
};
fn make_circle<T>(s: uint, e: uint, +b: [mut T]) -> circular_buf<T> {
ret {start: s, end: e, buf: b };
}
fn main() { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment