aboutsummaryrefslogtreecommitdiff
path: root/doc/additional/messageoddness/list_must_have_2_or_more_elements.pd
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-02-06 01:32:20 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-02-06 01:32:20 +0000
commit9b0b047298aaad0d8f4d9c89809e3601d9de171d (patch)
tree8b97d16b7f1ee1ef29f4160c55ec1530f74ecd93 /doc/additional/messageoddness/list_must_have_2_or_more_elements.pd
parent330c36164093070a4db14885c4135bba7312b8be (diff)
added examples generated from writing about defining all the types within Pd
svn path=/trunk/; revision=4554
Diffstat (limited to 'doc/additional/messageoddness/list_must_have_2_or_more_elements.pd')
-rw-r--r--doc/additional/messageoddness/list_must_have_2_or_more_elements.pd45
1 files changed, 45 insertions, 0 deletions
diff --git a/doc/additional/messageoddness/list_must_have_2_or_more_elements.pd b/doc/additional/messageoddness/list_must_have_2_or_more_elements.pd
new file mode 100644
index 00000000..3bfa0ea7
--- /dev/null
+++ b/doc/additional/messageoddness/list_must_have_2_or_more_elements.pd
@@ -0,0 +1,45 @@
+#N canvas 0 22 454 304 10;
+#X floatatom 243 167 5 0 0 0 - - -;
+#X symbolatom 291 166 10 0 0 0 - - -;
+#X obj 196 187 bng 15 250 50 0 empty empty bang -6 23 1 12 -262144
+-1 -1;
+#X obj 196 143 route bang float symbol list;
+#X obj 243 187 bng 15 250 50 0 empty empty float -4 23 1 12 -262144
+-1 -1;
+#X obj 291 187 bng 15 250 50 0 empty empty symbol -12 23 1 12 -262144
+-1 -1;
+#X obj 339 187 bng 15 250 50 0 empty empty list -2 23 1 12 -262144
+-1 -1;
+#X obj 387 187 bng 15 250 50 0 empty empty undefined -18 23 1 12 -262144
+-1 -1;
+#X text 24 35 There are no 0- or 1-element lists. These are immediately
+converted to other types:;
+#X msg 195 75 list;
+#X msg 202 96 list 2;
+#X msg 207 115 list word;
+#X floatatom 11 147 5 0 0 0 - - -;
+#X symbolatom 77 147 10 0 0 0 - - -;
+#X obj 11 165 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
+-1;
+#X obj 77 165 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
+-1;
+#X text 19 244 Therefore \, the definition of list is: a series of
+elements with a selector of "list" and 2 or more elements. (But don't
+forget! A series whose element is a float has an implied "list" selector!)
+;
+#X connect 0 0 4 0;
+#X connect 1 0 5 0;
+#X connect 3 0 2 0;
+#X connect 3 1 0 0;
+#X connect 3 2 1 0;
+#X connect 3 3 6 0;
+#X connect 3 4 7 0;
+#X connect 9 0 3 0;
+#X connect 9 0 13 0;
+#X connect 9 0 12 0;
+#X connect 10 0 3 0;
+#X connect 10 0 12 0;
+#X connect 11 0 3 0;
+#X connect 11 0 13 0;
+#X connect 12 0 14 0;
+#X connect 13 0 15 0;