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
Right now if I want to map a function over a generator, I must use rapid.Custom. Would a simpler Map function be possible where it lets me simply define the translation between two types?
The text was updated successfully, but these errors were encountered:
To map a function over a generator, you should use Transform. Before generics it was a method of the Generator called Map, but since methods can't be generic in Go, it became a top-level function (and was renamed to Transform to not be confused with the MapOf series of generators).
Maybe it is a good idea to rename Transform to Map, hmm.
Love this library! Thank you!
Right now if I want to map a function over a generator, I must use
rapid.Custom
. Would a simplerMap
function be possible where it lets me simply define the translation between two types?The text was updated successfully, but these errors were encountered: