Sign in
◑
Theme
fuchsia
/
third_party
/
github.com
/
leanprover
/
lean4
/
HEAD
/
.
/
tests
/
elab
/
may_postpone_tc.lean
blob: a36a7e498ccb1c96bb68be7d1678d30b62dc3e6a [
file
]
import
Lean
open
Lean
def
f
(
xs
:
List
String
)
:
CoreM
(
Array
String
)
:=
do
let
mut found
:
RBMap
_ _ compare
:=
{}
let
mut result
:=
#[]
for
x
in
xs
do
unless
found
.
contains x
do
result
:=
result
.
push x
found
:=
found
.
insert x
()
return
result