Skip to content

Instantly share code, notes, and snippets.

@yuikns
Last active May 29, 2016 07:45
Show Gist options
  • Save yuikns/9b80ccf82e6d009fc9b892811b5b84af to your computer and use it in GitHub Desktop.
Save yuikns/9b80ccf82e6d009fc9b892811b5b84af to your computer and use it in GitHub Desktop.
pub struct DataSet<X, Y> {
d: Vec<(Vec<X>, Y)>
}
impl DataSet {
pub fn new<X, Y>() -> DataSet<X, Y> {
DataSet { d: Vec::<(Vec<X>, Y)>::new() }
}
}
pub struct DataSet<X, Y> {
d: Vec<(Vec<X>, Y)>
}
impl<X, Y> DataSet<X, Y> {
pub fn new() -> DataSet<X, Y> {
DataSet {
d: Vec::new()
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment