Not clear that Exercise should include subdirectories
https://github.com/purescript-contrib/purescript-book/blob/1f5e18d4188a3dc734557dc0ecaaa6da7ae80ffe/text/chapter5.md?plain=1#L633
It wasn't obvious (to me, at least) that 'largestSmallest' should include subdirectories. I would suggest changing the text:
"(Difficult) Write a function `largestSmallest` which takes a `Path` and returns an array containing the single largest and single smallest files in the `Path`."
to:
"(Difficult) Write a function `largestSmallest` which takes a `Path` and returns an array containing the single largest and single smallest files in the `Path`, including (recursively) any subdirectories."
关闭于 2024-08-03 0 条评论