#N canvas 3 35 823 522 10;
#X floatatom 655 246 5 0 0 1 n - -;
#X msg 592 141 0 1 2 3 4 5 6;
#X msg 614 203 a b c d e;
#X msg 592 372 6;
#X msg 609 169 list x y z;
#X obj 592 267 u_listnth 2;
#X obj 592 308 list prepend set;
#X obj 592 329 list trim;
#N canvas 744 370 582 570 REFERENCE 0;
#X text 24 31 Name: [u_listnth];
#X text 24 61 Summary: Look up the nth element in a list.;
#X text 24 101 Argument 0: <integer> - Element position to look up
(default is 0 \, the first element).;
#X text 24 144 Inlet 0: <list> - List to look up in.;
#X text 24 174 Inlet 1: <integer> - Element position of the filter.
Zero-based \, positive.;
#X text 24 354 See also: [u_list drip] [u_listequal] [u_listfilter]
[u_listloop] [u_listmap] [u_listrandom] [u_listreduce] [u_listser]
;
#X text 24 284 Description: Returns the nth element in a list. 'n'
has to be positive and is zero based (where the first index is 0 instead
of 1). Non-lists get converted to proper lists.;
#X text 24 223 Outlet 0: Nth element in input list.;
#X text 24 434 Tags: Message \, Lists;
#X coords 0 -1 1 1 450 450 1 10 10;
#X restore 15 58 pd REFERENCE;
#X obj 15 28 cnv 15 450 25 empty empty empty 20 12 0 14 -261234 -66577
0;
#X text 478 61 Example:;
#X text 495 491 RjDj Library (https://github.com/rjdj/rjlib) - 2011
;
#X obj 18 32 u_listnth;
#X text 136 32 - Look up the nth element in a list.;
#X connect 0 0 5 1;
#X connect 1 0 5 0;
#X connect 2 0 5 0;
#X connect 4 0 5 0;
#X connect 5 0 6 0;
#X connect 6 0 7 0;
#X connect 7 0 3 0;
