list - How do i make this transform in lisp? -


I need to create a function that changes the 2 list to lispie? could you help me please?

(ABC) -> ((X) (BE) (CG))

This is an example

The case you asked for:

  CL-USER & gt; (Mupiter # 'Opposition' (1 2 3) '(ABC)) ((1A) (2b) (3C.))  

If you want to normalize: / P>

  cl-user & gt; In the functions:  
  (defun foo (& amp; rest) (# # mapcar # 'Apply list))  

which returns:

  CL-User & gt; (FO '(1 2 3)' (ABC) '(xy z)) ((1a x) (2b y) (3c z))  

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -