Skip to content
This repository has been archived by the owner on Jan 18, 2025. It is now read-only.

Commit

Permalink
fix: namespace separation
Browse files Browse the repository at this point in the history
  • Loading branch information
Seasawher committed Mar 25, 2024
1 parent 01fbbe1 commit f6fbba2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Src/Problem23.lean
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
-/
import Lean

namespace P23

variable {α : Type} [Inhabited α]

def rndSelect (l : List α) (n : Nat) : IO (List α) := do
Expand Down Expand Up @@ -40,3 +42,5 @@ def runTest [BEq α] [ToString α] (l : List α) (n : Nat) : IO Unit := do
#eval runTest [2, 2, 2] 12

#eval runTest (List.range 5200) 1897

end P23
4 changes: 4 additions & 0 deletions Src/Problem24.lean
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
-/
import Lean

namespace P24

/-- List of natural numbers from `1` to `n` -/
def List.nrange (n : Nat) : List Nat :=
match n with
Expand Down Expand Up @@ -65,3 +67,5 @@ def runTest (count range : Nat) : IO Unit := do
#eval runTest 1998 1999

#eval runTest 5668 5998

end P24

0 comments on commit f6fbba2

Please sign in to comment.