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

scala - Play Framework - how to bind form to a session field -

c++ - Why does Visual Studio Release build break on non-executing code line -

javascript - parsing json not working -