learnyouahaskell / learnyouahaskell.github.io

A community version of the renowned "Learn You a Haskell" (LYAH) tutorials collection!
https://learnyouahaskell.github.io
Other
317 stars 39 forks source link

feat: remove illogical sentence #56

Closed mazharz closed 10 months ago

mazharz commented 1 year ago

The type signature of length returns an Int for a good reason and that is to ensure that any code using that function can rely on the result being an integral number. Logically speaking, lists can't contain a fractional number of elements, so this is probably not for historical reasons nor is it stupid. I think removing this sentence altogether would make more sense.

smith558 commented 10 months ago

@mazharz Thank you for your contribution! 🙂