Skip to content

Commit

Permalink
Potential fix (elm#1107)
Browse files Browse the repository at this point in the history
  • Loading branch information
ForgottenGensym authored Jun 1, 2021
1 parent 65cea00 commit 9f9e7ec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/List.elm
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ singleton value =
-}
repeat : Int -> a -> List a
repeat n value =
repeatHelp [] n value
if isInfinite n then
[]

else
repeatHelp [] n value


repeatHelp : List a -> Int -> a -> List a
Expand Down

0 comments on commit 9f9e7ec

Please sign in to comment.