Lucas Stadler лет назад: 11
Родитель
Сommit
57189545b0
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      rust/pointers.rs

+ 8 - 0
rust/pointers.rs

118
        }
118
        }
119
    }
119
    }
120
120
121
    // pub fn from_iterator<'a, I: Iterator<A>, A: 'a>(mut i: I) -> &'a List<'a A> {
122
    //     let mut xs = &Nil;
123
    //     for x in i {
124
    //         xs = &cons(x, xs);
125
    //     }
126
    //     xs
127
    // }
128
121
    pub fn run() {
129
    pub fn run() {
122
        println!("\nlist_with_ref:");
130
        println!("\nlist_with_ref:");
123
131