[PD] [list prepend] without a space

Cyrille Henry ch at chnry.net
Fri Jan 17 18:52:03 CET 2014



Le 16/01/2014 12:06, Jonghyun Kim a écrit :
> Hi list,
>
> For OSC communication, I wonder to know how to do it.
>
> My original list(not exactly list but I say so) is:
> *test 1 2 3*
>
> Prepend symbols are: (prepend twice or more)
> */abc*
> */def*
>
> I want to do it
> ================
>
> [test 1 2 3(
> |
> [t a b]
> |       \
> |        [symbol */abc*]
> |         \
> [list prepend]
> |
> [t a b]
> |       \
> |        [symbol */def*]
> |         \
> [list prepend]
> |

list split 2
|      |
[$1$2<  |
|        |
[list append]
|

cheers
c



> [print]
>
> ================
> The result is:
>
> */def    /abc    test    1    2    3*
>
> But, I want to remove the space within */def* and */abc*
>
> I want to do without the space.
>
> ================
> */def/abc    test    1    2    3*
> ================
>
> how to do it?
>
> I tried with [$2$1] as list prepend, but the symbol in the text, it failed.
>
> Pleas help!
>
> Thanks,
> Jong
>
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
>



More information about the Pd-list mailing list