[GHC] #10084: Data.List should have a takeLastN function
GHC
ghc-devs at haskell.org
Thu Feb 12 13:59:01 UTC 2015
#10084: Data.List should have a takeLastN function
-------------------------------------+-------------------------------------
Reporter: leonbaum2 | Owner:
Type: feature | Status: new
request | Milestone:
Priority: normal | Version: 7.8.4
Component: | Operating System: Unknown/Multiple
libraries/base | Type of failure: None/Unknown
Keywords: | Blocked By:
Architecture: | Related Tickets:
Unknown/Multiple |
Test Case: |
Blocking: |
Differential Revisions: |
-------------------------------------+-------------------------------------
A natural compliment to the `take` function that instead takes `n`
elements from the end of the list rather than from the start would be very
useful.
I'm surprised it's not defined in base because it seems to be a common
operation that is not trivial to define in an efficient way. See
http://www.joachim-
breitner.de/blog/600-On_taking_the_last_n_elements_of_a_list
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10084>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list