Zulip Chat Archive
Stream: new members
Topic: Injectivity of pure
Yakov Pechersky (Jan 03 2021 at 20:36):
Is there an example of a lawful applicative such that pure
is not injective?
Mario Carneiro (Jan 03 2021 at 20:39):
const
Mario Carneiro (Jan 03 2021 at 20:39):
that is, pure a = ()
Yakov Pechersky (Jan 03 2021 at 20:46):
But for all non subsingleton ones, is it true?
Mario Carneiro (Jan 03 2021 at 21:21):
Any monoid can be used to build a const applicative where you ignore the thing you were passed
Adam Topaz (Jan 03 2021 at 21:21):
The world has many many many MANY monads....
Last updated: Dec 20 2023 at 11:08 UTC