aboutsummaryrefslogtreecommitdiff
path: root/doc/pddp/all_about_lists_vs_anythings.pd
blob: 394cb0d16327847ba71e3d5ec8a9c91e4e62b032 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#N canvas 315 96 870 599 10;
#X msg 74 245 1 2 3;
#X obj 134 276 route list;
#X msg 183 224 list this is a list with a cast;
#X msg 190 243 this is a list withOUT a cast;
#X msg 41 225 list 1 2 3;
#X msg 10 63 list;
#X msg 17 83 list 5;
#X msg 24 103 list pie;
#X symbolatom 32 129 10 0 0 0 - - -;
#X obj 4 2 cnv 15 850 20 empty empty all_about_lists_vs_anythings 20
10 1 18 -233017 -66577 0;
#X obj 821 3 pddp;
#X text 20 558 by Hans-Christoph Steiner <hans@at.or.at>;
#X obj 65 437 list2int;
#X obj 129 436 l2i;
#X obj 131 462 a2l;
#X obj 64 463 any2list;
#X obj 64 413 lister;
#X obj 64 489 list2symbol;
#X obj 64 510 symbol2list;
#X obj 153 489 l2s;
#X obj 153 509 s2l;
#X obj 197 490 tosymbol;
#X obj 197 509 fromsymbol;
#X text 502 313 use [prepend]!!;
#X obj 619 311 prepend;
#X obj 682 380 drip;
#X text 589 380 write about:;
#X obj 560 460 glue;
#X obj 621 487 pack;
#X obj 620 461 list2symbol;
#X obj 730 460 tosymbol;
#X text 8 175 More than one "float" in a message is considered a "list".
More than one "symbol" in a message is not implicitly considered a
"list" \, only if you cast it.;
#X text 87 104 A "list" of one "symbol" is translated into a "symbol".
;
#X text 72 83 A "list" of one "float" is translated into a "float".
;
#X text 50 63 An empty "list" is tranlated into a "bang".;
#X text 7 39 SPECIAL CASES OF "LISTS".;
#X text 498 268 working with "lists" and "anythings":;
#X text 537 434 making "lists" from untyped inputs:;
#X obj 10 148 print NOT-LISTS;
#X obj 496 460 repack;
#X obj 134 299 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 198 300 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X text 506 163 lists maps to outlets \, non-lists don't;
#X text 478 138 Miller's list explanation;
#X obj 65 391 list;
#X obj 64 366 any;
#X obj 93 366 pipe;
#X text 509 190 anything is not a atom type;
#X connect 0 0 1 0;
#X connect 1 0 40 0;
#X connect 1 1 41 0;
#X connect 2 0 1 0;
#X connect 3 0 1 0;
#X connect 4 0 1 0;
#X connect 5 0 38 0;
#X connect 6 0 38 0;
#X connect 7 0 8 0;
#X connect 7 0 38 0;
#X connect 29 0 28 0;