
#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 holmisen): Ah, I never thought of the laziness making `tail` safe here. Really good to know. `zipConsecutive` and `zipConsecutiveWith` looks good. Should not be too likely to collide with other names for users who import `Data.List`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11815#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler