Closed Lysxia closed 6 years ago
Hmm, I like the functionality but I'm not sure about the name now (since it doesn't generate a product). I'm going to try and think of a better name (bikeshedding). Suggestions welcome!
Sure! How about arbitraryConstructor
or arbitraryVariant
?
It can be used to apply an arbitrary function though, not just a constructor.
How about liftArbitrary2
etc. by analogy with liftM2
and liftA2
?
liftArbitrary is used by Arbitrary1, unfortunately
Sent from my iPhone
On 6 Jan 2018, at 0.16, Nick Smallbone notifications@github.com wrote:
It can be used to apply an arbitrary function though, not just a constructor.
How about liftArbitrary2 etc. by analogy with liftM2 and liftA2?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
Ah, that's unfortunate. My first thought had been arbitrary2
, which fails for the same reason :)
How about arbitraryApply2
, then?
I like arbitraryApply2
!
I renamed to arbitraryApply2/3 and added an arity-4 version.
But I may do further bikeshedding if I think of a better name :)
Great!
Resolves #155