Skip to content

Commit

Permalink
Change range to be inclusive
Browse files Browse the repository at this point in the history
  • Loading branch information
BNAndras authored Jan 10, 2024
1 parent fa86c46 commit 2645547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/practice/square-root/.meta/example.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
(define/contract (square-root radicand)
(-> exact-positive-integer? (or/c exact-positive-integer?
false?))
(for/first ([num (in-range radicand)]
(for/first ([num (in-inclusive-range radicand)]
#:when (equal? (expt num 2) radicand))
num))

0 comments on commit 2645547

Please sign in to comment.