[Haskell-cafe] Never-ending discussion... Was: Basic list exercise
Johannes Waldmann
johannes.waldmann at htwk-leipzig.de
Fri Mar 24 21:10:54 UTC 2023
@Jerzy : I like your plan to use combinators.
Then let's remove (visible) recursion completely:
map (map fst ) $ groupBy (const snd)
$ zip xs ( True : zipWith (<=) xs (tail xs))
More information about the Haskell-Cafe
mailing list