Changes between Initial Version and Version 1 of Ticket #5567


Ignore:
Timestamp:
Sep 23, 2007, 4:06:29 AM (17 years ago)
Author:
James Bennett
Comment:

(cleaning up formatting in description)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5567 – Description

    initial v1  
    33It seemed like an oversight that there wasn't a "last" template filter similar to the "first" filter. I wrote it up, along with tests, and added in an nth filter that takes an arg and accessing that index of the value.
    44
     5{{{
    56>>> last([0, 1, 2, 3, 4])
    674
     
    1112>>> nth(u'abcd', 1)
    1213u'b'
     14}}}
Back to Top