2 ms·
> Most of the standard library function calls return some opaque Result type This is by design, e.g. map could not be lazy if it returned an array. > Oh, and
by mhh__ 7y ago
> Most of the standard library function calls return some opaque Result type
This is by design, e.g. map could not be lazy if it returned an array.
> Oh, and I don't even know if it's possible to pass such Result to a function because you have to use auto to declare it.
templates, void use(T)(T x) [auto ref if you feel fancy]