You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this should have been possible. the actual map method in rust (ref) does it. but gust doesnt (ref)
Map should accept a func that takes a param T and returns S
a workaround could be
For example if we have:
t
of typeOption[T]
fn
of typefunc(T) S
And
t.Map(fn)
should be of typeOption[S]
. TheMap()
does something like this:Is is possible?
The text was updated successfully, but these errors were encountered: