list/append/cons...

0 views
Skip to first unread message

Ole Schmidt

unread,
Sep 1, 2012, 11:08:40 AM9/1/12
to symbolic...@googlegroups.com
;what I want is this:

(("3/8" "3/8" "3/8" "3/8" "3/8" "1/8")

;how can I achive that? I've tried:

(list (gen-repeat 5 '("3/8")) "1/8")
-->(("3/8" "3/8" "3/8" "3/8" "3/8") "1/8")

(append (gen-repeat 5 '("3/8")) "1/8")
-->("3/8" "3/8" "3/8" "3/8" "3/8" . "1/8")

(cons (gen-repeat 5 '("3/8")) "1/8")
-->(("3/8" "3/8" "3/8" "3/8" "3/8") . "1/8")


thanks,

ole

pstone imap

unread,
Sep 1, 2012, 12:18:13 PM9/1/12
to symbolic...@googlegroups.com
This way:

(append (gen-repeat 5 '("3/8")) '("1/8"))
-->
("3/8"
"3/8"
"3/8"
"3/8"
"3/8"
"1/8")

If you do computed signature zones take a notice of literize (SCOM 6.5)

(literize (append (gen-repeat 5 '(3/8)) '(1/8)))
-->
("3/8"
"3/8"
"3/8"
"3/8"
"3/8"
"1/8")

A bit far-fetched but working too :-)

(literize (gen-loop '(1 1 5) '(3/8 1/8)))

Peter
> --
> You received this message because you are subscribed to the Google Groups "Symbolic Composer" group.
> To post to this group, send email to symbolic...@googlegroups.com.
> To unsubscribe from this group, send email to symboliccompos...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/symboliccomposer?hl=en.
>

ole

unread,
Sep 1, 2012, 12:46:52 PM9/1/12
to symbolic...@googlegroups.com
thanks for the quick answer and literize rocks! :-)

ole
Reply all
Reply to author
Forward
0 new messages