aboutsummaryrefslogtreecommitdiff
path: root/reference/lister-help.pd
blob: 1f1ec2e36d3ef8261c429e47336e12be6861e22e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#N canvas 252 393 685 518 10;
#X obj 110 16 lister;
#X text 160 17 - store a list;
#X msg 41 132 bang;
#X text 76 133 outputs a list;
#X text 288 180 sets and outputs a list;
#X text 243 336 creation argument initializes a list;
#X obj 18 381 print;
#X text 291 16 alias;
#X obj 331 16 l;
#X msg 232 315 2 3 5 7 11 prime;
#X obj 41 336 lister 1 2 3 4 5 6 7 ordinal;
#X msg 62 180 1 1 2 3 5 8 13 21 44 fibonacchi;
#X text 64 77 of course \, this is similar to the "pack" object \,
but here we handle list-lenghts dynamically and do not care about type
checking !!!;
#X obj 67 381 list2symbol;
#X symbolatom 67 403 0 0 0 0 output: - -;
#X msg 91 260 one 2 3 four;
#X msg 96 283 list one 2 3 four;
#X text 228 283 works;
#X text 193 260 does NOT work (check console for error);
#X text 353 315 right inlet sets a list without outputting;
#X text 94 222 lists of mixed-type work but if any list starts with
a symbol \, you need to cast it as a list:;
#X msg 77 199 1 two three 4;
#X msg 51 161 7 8 9;
#X text 64 53 similar to:;
#X obj 154 52 float;
#X obj 202 52 int;
#X obj 237 52 symbol;
#X text 497 29 part of zexy;
#X obj 202 470 list;
#X text 35 448 this object has been deprecated by the advent of [list]
in Pd-0.40 \; use that one instead!;
#X connect 2 0 10 0;
#X connect 9 0 10 1;
#X connect 10 0 6 0;
#X connect 10 0 13 0;
#X connect 11 0 10 0;
#X connect 13 0 14 0;
#X connect 15 0 10 0;
#X connect 16 0 10 0;
#X connect 21 0 10 0;
#X connect 22 0 10 0;