From fe6f585f60009f929c7d799298cce9e7de73fc24 Mon Sep 17 00:00:00 2001 From: Serge Poltavski Date: Sun, 2 Jul 2017 00:54:14 +0300 Subject: [PATCH] doc: list.pass_if update --- ceammc/ext/doc/list.pass_if-help.pd | 63 ++++++++++++++++++----------- ceammc/ext/doc/list.pass_if.pddoc | 18 ++++++++- 2 files changed, 56 insertions(+), 25 deletions(-) diff --git a/ceammc/ext/doc/list.pass_if-help.pd b/ceammc/ext/doc/list.pass_if-help.pd index 097044aee9..3daae229c6 100644 --- a/ceammc/ext/doc/list.pass_if-help.pd +++ b/ceammc/ext/doc/list.pass_if-help.pd @@ -6,8 +6,8 @@ -4096 0; #X obj 601 11 list.pass_if; #X obj 205 80 cnv 1 490 47 empty empty empty 17 7 0 10 -257983 -1 0; -#X text 210 80 Predicate object should accept atom and output 0 (leave -element) or 1 (remove).; +#X text 210 80 Predicate object should accept atom and output 0 +(remove element) or 1 (leave element).; #X msg 50 155 10; #X msg 338 155 10; #X obj 50 184 list.seq; @@ -20,32 +20,41 @@ element) or 1 (remove).; #X obj 338 242 msg set; #X msg 50 271 ; #X msg 338 271 ; -#X obj 20 310 cnv 1 685 1 empty empty empty 17 7 0 10 -203890 -1 0; -#X obj 20 315 cnv 5 64 26 empty empty inlets: 4 10 0 14 -262144 -49933 +#X obj 50 299 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 +-1; +#X obj 50 328 path.ls .; +#X obj 50 357 list.pass_if; +#X obj 213 357 str.ends_with .pd; +#X obj 50 386 str.join ' '; +#X obj 50 415 str->sym; +#X obj 50 443 msg set; +#X msg 50 472 ; +#X obj 20 511 cnv 1 685 1 empty empty empty 17 7 0 10 -203890 -1 0; +#X obj 20 516 cnv 5 64 26 empty empty inlets: 4 10 0 14 -262144 -49933 0; -#X text 120 320 1\.; -#X text 150 320 *list*; -#X text 240 320 input list.; -#X text 120 338 2\.; -#X text 150 338 *float*; -#X text 240 338 value from predicate.; -#X obj 20 366 cnv 1 685 1 empty empty empty 17 7 0 10 -203890 -1 0; -#X obj 20 371 cnv 5 73 26 empty empty outlets: 4 10 0 14 -262144 +#X text 120 521 1\.; +#X text 150 521 *list*; +#X text 240 521 input list.; +#X text 120 539 2\.; +#X text 150 539 *float*; +#X text 240 539 value from predicate.; +#X obj 20 567 cnv 1 685 1 empty empty empty 17 7 0 10 -203890 -1 0; +#X obj 20 572 cnv 5 73 26 empty empty outlets: 4 10 0 14 -262144 -49933 0; -#X text 120 376 1\.; -#X text 240 376 output list with accepted elements; -#X text 120 394 2\.; -#X text 240 394 atom to predicate; +#X text 120 577 1\.; +#X text 240 577 output list with accepted elements; +#X text 120 595 2\.; +#X text 240 595 atom to predicate; #X obj 10 48 ui.link @title index @url ../index-help.pd; #X text 51 45 ::; #X obj 67 48 ui.link @title ceammc @url ceammc-help.pd; #X text 115 45 ::; #X obj 131 48 ui.link @title list @url ceammc.list-help.pd; -#X obj 1 505 cnv 5 712 48 empty empty empty 17 7 0 10 -203890 -1 0; -#X text 10 508 library: ceammc v0.3; -#X text 513 520 see also:; -#X obj 589 520 list.remove_if; -#N canvas 10 527 400 290 info 0; +#X obj 1 643 cnv 5 712 48 empty empty empty 17 7 0 10 -203890 -1 0; +#X text 10 646 library: ceammc v0.3; +#X text 513 658 see also:; +#X obj 589 658 list.remove_if; +#N canvas 10 665 400 290 info 0; #X obj 1 1 cnv 1 107 287 empty empty empty 17 7 0 10 -183085 -1 0; #X text 10 10 library:; #X text 120 10 ceammc; @@ -69,16 +78,24 @@ https://github.com/uliss/pure-data; #X obj 120 208 declare -lib ceammc -lib creammc; #X obj 120 268 cnv 1 270 1 empty empty empty 17 7 0 10 -203890 -1 0; #X text 120 268 generated by pddoc; -#X restore 10 527 pd info; +#X restore 10 665 pd info; #X connect 12 0 15 0; -#X connect 10 1 11 0; +#X connect 18 0 19 0; #X connect 10 0 14 0; #X connect 9 0 12 0; +#X connect 20 0 22 0; +#X connect 10 1 11 0; +#X connect 21 0 20 1; #X connect 15 0 17 0; +#X connect 24 0 25 0; #X connect 13 0 12 1; +#X connect 20 1 21 0; #X connect 8 0 10 0; #X connect 6 0 8 0; #X connect 12 1 13 0; #X connect 14 0 16 0; +#X connect 19 0 20 0; +#X connect 23 0 24 0; +#X connect 22 0 23 0; #X connect 11 0 10 1; #X connect 7 0 9 0; \ No newline at end of file diff --git a/ceammc/ext/doc/list.pass_if.pddoc b/ceammc/ext/doc/list.pass_if.pddoc index 2da0fb630a..9e9840eddb 100644 --- a/ceammc/ext/doc/list.pass_if.pddoc +++ b/ceammc/ext/doc/list.pass_if.pddoc @@ -17,8 +17,8 @@ - Predicate object should accept atom and output 0 (leave element) or 1 - (remove). + Predicate object should accept atom and output 0 (remove element) or 1 + (leave element). @@ -44,6 +44,20 @@ [msg set] [msg set] | | [ ( [ ( + +[B] +| +[path.ls .] +| +[list.pass_if] X [str.ends_with .pd] +| +[str.join ' '] +| +[str->sym] +| +[msg set] +| +[ ( ]]>