We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 125dcf1 commit d3ef352Copy full SHA for d3ef352
exercises/chapter4/test/no-peeking/Solutions.purs
@@ -95,7 +95,7 @@ reverse :: ∀ a. Array a -> Array a
95
reverse = foldl (\xs x -> [ x ] <> xs) []
96
97
onlyFiles :: Path -> Array Path
98
-onlyFiles p = filter (\p' -> not $ isDirectory p') $ allFiles p
+onlyFiles path = filter (not isDirectory) (allFiles path)
99
100
allSizes :: Array Path -> Array (Tuple String Int)
101
allSizes paths =
0 commit comments