Filters half of your CS classmates

>filters half of your CS classmates

Attached: 1663237394756.png (860x1007, 44.53K)

bump

How do I reverse a link list without recursion

wildcards dont filter anything

bump

bump

stdout

bump

the pointer or the wildcard kind
good one

bump

bump

test

test

test

bump

>filters all Any Forums posts

lol

Why do people get filtered by Kleene stars?

you won this thread

In Rust, this is just:
enum LinkedList {
Cons(T, Box),
Nil
}

impl LinkedList {
fn reverse(mut self) -> Self {
let mut result = Self::Nil;
while let Self::Cons(x, xs) = self {
result = Self::Cons(x, Box::new(result));
self = *xs;
}
result
}
}

bump