need help with Drscheme


by Yura
Tags: drscheme
Yura
Yura is offline
#1
May13-06, 08:29 AM
P: 39
If I have a list '(1 2 3 4 5 6 7 8), how do write a procedure that will make the list (p1 p2 p3 p4 p5 p6 p7 p8), with the "p" in front of each number.

I've tried using cons to but that just does the whole ((p . 1) (p . 2) (p . 3)....) thing

I need it without the cons dot.

Does anyone know a procedure to even just take inputs p and n so that running it returns pn ? because then i might be able to map that in.
Phys.Org News Partner Science news on Phys.org
Cougars' diverse diet helped them survive the Pleistocene mass extinction
Cyber risks can cause disruption on scale of 2008 crisis, study says
Mantis shrimp stronger than airplanes

Register to reply