Sign in
◑
Theme
fuchsia
/
third_party
/
github.com
/
leanprover
/
lean4
/
refs/heads/upstream/kernel-strlit-bytes
/
.
/
tests
/
compile
/
534.lean
blob: 549a977c012417f85436e54b6c3c18983096f429 [
file
] [
edit
]
def
foo
(
array
:
Array
Nat
)
:
Nat
->
Nat
|
0
=>
0
|
n
+
1
=>
let
array
:=
array
.
filter
(!.==
5
)
if
array
.
isEmpty
then
0
else
let
arrayOfLast
:=
#[array.back!]
foo arrayOfLast n
def
main
:
IO
Unit
:=
IO
.
println
(
"hi"
)