﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
5567	"Add a ""last"" template filter"	Chris H.	nobody	"Hi,

It 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.

{{{
>>> last([0, 1, 2, 3, 4])
4
>>> last(u'Hello')
u'o'
>>> nth(['a', 'b', 'c', 'd'], 1)
'b'
>>> nth(u'abcd', 1)
u'b'
}}}"		closed	Template system	dev		fixed			Ready for checkin	1	0	0	0	0	0
