Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
eric-wieser
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
eric-wieser
3y ago
Mathlib4 provides a `Monad List` instance, which you can see at https://leanprover-community.github.io/mathlib4_docs/Mathlib...
2.
▲
by
eric-wieser
3y ago
It has the following which means the same as what you wrote: do let x ← List.range' 1 10; return x^2 The syntax is flexible enough that you could build your own: macro "[" r:term "|" preamble:doElem