Skip to content

Commit

Permalink
Solve 5ee8ba31b44cc30032cbce04
Browse files Browse the repository at this point in the history
  • Loading branch information
tbsklg committed Jun 16, 2024
1 parent ad7d291 commit 2bd3336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Kyu7/Repeated.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ module Kyu7.Repeated (isConsecutive) where
import Data.List (group, nub)

isConsecutive :: String -> Bool
isConsecutive xs = nub xs == map head (group xs)
isConsecutive xs = map head (group xs) == nub xs

0 comments on commit 2bd3336

Please sign in to comment.