Documentation
Init
.
While
Search
return to top
source
Imports
Init.Core
Imported by
Lean
.
Loop
Lean
.
Loop
.
forIn
Lean
.
Loop
.
forIn
.
loop
Lean
.
instForInLoopUnit
Lean
.
doElemRepeat_
Lean
.
«doElemWhile_:_Do_»
Lean
.
doElemWhile_Do_
Lean
.
doElemRepeat__Until_
Notation for
while
and
repeat
loops.
#
repeat
and
while
notation
#
source
inductive
Lean
.
Loop
:
Type
mk :
Loop
Instances For
source
@[inline]
def
Lean
.
Loop
.
forIn
{
β
:
Type
u}
{
m
:
Type
u →
Type
v
}
[
Monad
m
]
:
Loop
→
(
init
:
β
) →
(
f
:
Unit
→
β
→
m
(
ForInStep
β
)
) →
m
β
Equations
Instances For
source
@[specialize #[]]
partial def
Lean
.
Loop
.
forIn
.
loop
{
β
:
Type
u}
{
m
:
Type
u →
Type
v
}
[
Monad
m
]
(
f
:
Unit
→
β
→
m
(
ForInStep
β
)
)
(
b
:
β
)
:
m
β
source
instance
Lean
.
instForInLoopUnit
{
m
:
Type
u_1 →
Type
u_2
}
:
ForIn
m
Loop
Unit
Equations
source
def
Lean
.
doElemRepeat_
:
ParserDescr
Equations
Instances For
source
def
Lean
.
«doElemWhile_:_Do_»
:
ParserDescr
Equations
Instances For
source
def
Lean
.
doElemWhile_Do_
:
ParserDescr
Equations
Instances For
source
def
Lean
.
doElemRepeat__Until_
:
ParserDescr
Equations
Instances For