#collar

18 messages · Page 1 of 1 (latest)

void vessel
#

amazing array collections, in stable
Iterator<I = T> => Option<[T; N]>
Iterator<I = Result<T, E>> => Result<[T; N], E<E>> (wow!)
and a handy try_from_fn implementation

panic safe, and totally sound, no leaks included
https://crates.io/crates/collar

cedar dome
#

What's the "origin" for the crate name?

void vessel
cedar dome
#

Do you happen to know why this isn't in the stdlib?

void vessel
#

api stalled

#

needs try feature for the try_collect_array if you did it in Std properly

cedar dome
#

Hmm why is try collect important? Could just collect to option array 🤔

void vessel
#

[Option<T>] is a lot less useful than Option<[T]>

cedar dome
#

Ah I see

void vessel
#

yeah

mental igloo
#

cool crate, ive run into this a bunch of times
hopefully next time i remember this exists :)

void vessel
#

fuck