Substitutions in Common Lisp

前端 未结 2 522
谎友^
谎友^ 2021-01-29 10:13

I’m trying to write a function with two arguments of this type:

substitutions (list_one, list_two)

list_one has always this form (letters can c

2条回答
  •  不要未来只要你来
    2021-01-29 10:36

    A not so efficient solution is to first find a list of all the letters in the fist tree structure (the first list) and then to LOOP over the results calling SUBST repeatedly.

    To find the list of non numeric atoms in the first list (the 'letters') you need to traverse the tree structure (le first list) recurring both on the FIRST and on the REST of the list.

    Hope it helps.

    MA

提交回复
热议问题