Zulip Chat Archive

Stream: lean4

Topic: Convert Monads to Units


Gareth Ma (Oct 27 2023 at 01:20):

Hi, is there a function that turns a TacticM Bool to a TacticM Unit?

Gareth Ma (Oct 27 2023 at 01:20):

Something that behaves like do let _ ← tactic ; return

Adam Topaz (Oct 27 2023 at 01:21):

I think there's something called docs#discard ? (modulo namespaces)

Gareth Ma (Oct 27 2023 at 01:22):

Ah yes

Gareth Ma (Oct 27 2023 at 01:22):

Thanks!!

Adam Topaz (Oct 27 2023 at 01:22):

In case anyone else is looking, it's docs#Functor.discard


Last updated: Dec 20 2023 at 11:08 UTC