Skip to content

Commit

Permalink
Refactor 64c7bbad0a2a00198657013d
Browse files Browse the repository at this point in the history
  • Loading branch information
tbsklg committed Jun 23, 2024
1 parent b83c406 commit 8bb7deb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Kyu7/ReverseSublist.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ module Kyu7.ReverseSublist where
import Data.List (groupBy, sort)

revSub :: [Integer] -> [Integer]
revSub xs = groupBy (\x y -> even x && even y) xs >>= reverse
revSub = (>>= reverse) . groupBy (\x y -> even x && even y)

0 comments on commit 8bb7deb

Please sign in to comment.