recursive list definition
This commit is contained in:
parent
dcc385a1e1
commit
c413e9b922
1 changed files with 6 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
fn main() {
|
||||
println!("Hello, world!");
|
||||
|
||||
}
|
||||
|
||||
pub enum List {
|
||||
Empty,
|
||||
Elem(i32, List),
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue