
#11815: Data.List: Add a function to get consecutive elements (mapConsecutives) -------------------------------------+------------------------------------- Reporter: holmisen | Owner: Type: feature request | Status: new Priority: low | Milestone: Component: libraries/base | Version: Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by nomeata): Right, I expected something like this with `Nothing` and `Just`, which made me less hopeful for good performance. Are you sure that GHC is able to w/w the worker here and avoid the Maybes? Maybe with argument constructor specialization... I should just try it out. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11815#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler