aboutsummaryrefslogtreecommitdiff
path: root/doc/pddp/all_about_atom_conversion.pd
blob: ea1ec8fc74fef7afa8ad82a95ec5d7fab54c279e (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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#N canvas 32 32 763 478 10;
#X obj 4 2 cnv 15 750 20 empty empty all_about_atom_conversion 20 10
1 18 -233017 -66577 0;
#X obj 721 3 pddp/pddplink http://puredata.info/dev/pddp -text pddp
;
#X obj 27 354 list2int;
#X obj 91 353 l2i;
#X obj 93 379 a2l;
#X obj 26 380 any2list;
#X obj 26 330 lister;
#X obj 26 406 list2symbol;
#X obj 26 427 symbol2list;
#X obj 115 406 l2s;
#X obj 115 426 s2l;
#X obj 159 407 tosymbol;
#X obj 159 426 fromsymbol;
#X obj 508 290 glue;
#X obj 569 317 pack;
#X obj 568 291 list2symbol;
#X obj 678 290 tosymbol;
#X text 485 264 making "lists" from untyped inputs:;
#X obj 444 290 repack;
#X obj 27 308 list;
#X obj 26 283 any;
#X obj 55 283 pipe;
#X text 439 66 a set that is not a "list" has an undefined type:;
#X text 17 39 SPECIAL CASES OF "LISTS".;
#X obj 473 420 pddp/pddplink all_about_data_types.pd -text all_about_data_types
;
#X obj 473 397 pddp/pddplink all_about_lists_vs_anythings.pd -text
all_about_lists_vs_anythings;
#X obj 454 155 bng 15 250 50 0 empty empty bang 0 20 1 9 -262144 -1
-1;
#X obj 503 155 bng 15 250 50 0 empty empty float 0 21 1 9 -262144 -1
-1;
#X obj 552 155 bng 15 250 50 0 empty empty symbol 0 21 1 9 -262144
-1 -1;
#X msg 456 93 list this is a set with a cast;
#X msg 463 112 this is a set withOUT a cast;
#X obj 651 155 bng 15 250 50 0 empty empty list 0 21 1 9 -262144 -1
-1;
#X obj 701 155 bng 15 250 50 0 empty empty UNDEFINED 0 21 1 9 -262144
-1 -1;
#X obj 454 135 route bang float symbol pointer list;
#X obj 602 155 bng 15 250 50 0 empty empty pointer 0 21 1 9 -262144
-1 -1;
#X msg 20 63 list;
#X symbolatom 42 129 10 0 0 0 - - -;
#X msg 27 83 list 25;
#X msg 34 103 list foo;
#X text 97 104 A "list" of one "symbol" is converted to a "symbol"
;
#X text 82 83 A "list" of one "float" is converted to a "float";
#X text 60 63 An empty "list" is converted to a "bang";
#X obj 21 169 bng 15 250 50 0 empty empty bang 0 20 1 9 -262144 -1
-1;
#X obj 70 169 bng 15 250 50 0 empty empty float 0 21 1 9 -262144 -1
-1;
#X obj 119 169 bng 15 250 50 0 empty empty symbol 0 21 1 9 -262144
-1 -1;
#X obj 218 169 bng 15 250 50 0 empty empty list 0 21 1 9 -262144 -1
-1;
#X obj 268 169 bng 15 250 50 0 empty empty UNDEFINED 0 21 1 9 -262144
-1 -1;
#X obj 21 149 route bang float symbol pointer list;
#X obj 169 169 bng 15 250 50 0 empty empty pointer 0 21 1 9 -262144
-1 -1;
#X text 13 233 There are many ways to store \, manipulate. and convert
atoms and lists. Here is a sampling;
#X connect 15 0 14 0;
#X connect 29 0 33 0;
#X connect 30 0 33 0;
#X connect 33 0 26 0;
#X connect 33 1 27 0;
#X connect 33 2 28 0;
#X connect 33 3 34 0;
#X connect 33 4 31 0;
#X connect 33 5 32 0;
#X connect 35 0 47 0;
#X connect 37 0 47 0;
#X connect 38 0 36 0;
#X connect 38 0 47 0;
#X connect 47 0 42 0;
#X connect 47 1 43 0;
#X connect 47 2 44 0;
#X connect 47 3 48 0;
#X connect 47 4 45 0;
#X connect 47 5 46 0;