aboutsummaryrefslogtreecommitdiff
path: root/reference
diff options
context:
space:
mode:
Diffstat (limited to 'reference')
-rw-r--r--reference/list2lists-help.pd21
-rw-r--r--reference/listfind-help.pd26
2 files changed, 47 insertions, 0 deletions
diff --git a/reference/list2lists-help.pd b/reference/list2lists-help.pd
new file mode 100644
index 0000000..717d82b
--- /dev/null
+++ b/reference/list2lists-help.pd
@@ -0,0 +1,21 @@
+#N canvas 385 348 685 429 10;
+#X text 497 29 part of zexy;
+#X obj 63 13 list2lists;
+#X text 136 13 - split a list into sublists;
+#X obj 88 220 print sublists;
+#X obj 88 175 list2lists;
+#X msg 88 83 1 2 3 4 5 6 7 8 9 10;
+#X text 216 154 an array of lengths of the sublists;
+#X text 226 84 a list to be split;
+#X text 186 214 outputs a number of sublists each having the length
+as specified to the object.;
+#X text 91 266 if the total length of the sublists exceeds the length
+of the input list \, the rest of the sublists is discarded;
+#X msg 143 153 4 3 0 0 -1 -2;
+#X text 94 293 zero-length sublists are "bangs";
+#X text 77 351 see also;
+#X obj 150 350 repack;
+#X text 206 351 fixed sized sublists;
+#X connect 4 0 3 0;
+#X connect 5 0 4 0;
+#X connect 10 0 4 1;
diff --git a/reference/listfind-help.pd b/reference/listfind-help.pd
new file mode 100644
index 0000000..2b51094
--- /dev/null
+++ b/reference/listfind-help.pd
@@ -0,0 +1,26 @@
+#N canvas 385 348 685 518 10;
+#X text 497 29 part of zexy;
+#X obj 63 13 listfind;
+#X text 122 14 - find sublists in lists;
+#X obj 88 175 listfind;
+#X msg 279 154 1 2 3 2 1 8 2 3 4;
+#X obj 279 128 loadbang;
+#X msg 88 71 1;
+#X text 283 174 set the list to be searched;
+#X text 85 55 the list to be found;
+#X msg 100 95 list bla;
+#X msg 114 119 list 2 3;
+#X msg 126 142 list 8;
+#X obj 88 220 print found@;
+#X text 180 223 outputs a list of (0-based) indices of all occurences
+of the sublist;
+#X text 84 281 this is similar (and hopefully compatible) to foobar's
+[list-find] but it searches not only for single elements but for entire
+sub-lists;
+#X connect 3 0 12 0;
+#X connect 4 0 3 1;
+#X connect 5 0 4 0;
+#X connect 6 0 3 0;
+#X connect 9 0 3 0;
+#X connect 10 0 3 0;
+#X connect 11 0 3 0;