get last n elements of list

Hi,

my current approach to extract the last n elements of a list l is

k)  (-n&#l)#l

or with inline n (the space beetween - and 4 is required

k) (- 4&#l)#l

is there a faster way?

thank you. Markus

sublist

2014-12-10 15:02 GMT+02:00 Markus Sieber <sieber@boerse-go.de>:

Hi,

my current approach to extract the last n elements of a list l is

k)  (-n&#l)#l

or with inline n (the space beetween - and 4 is required

k) (- 4&#l)#l

is there a faster way?

thank you. Markus


Submitted via Google Groups