Last active
May 29, 2016 07:45
-
-
Save yuikns/9b80ccf82e6d009fc9b892811b5b84af to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() } | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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