gpt4 book ai didi

list - 如何删除双括号并仅保留 lisp 中的嵌套列表?

转载 作者:太空宇宙 更新时间:2023-11-03 19:02:01 24 4
gpt4 key购买 nike

例如,从这个转换:

((((7 8) (0 H 0))) (((11 12)))) 

以下内容:

((7 8) (0 H 0) (11 12))

不是 (7 8 0 H 0 11 12) !!谢谢。

最佳答案

0: (MYSTERIOUS ((((7 8) (0 H 0))) (((11 12))) (((A B) (C D))) ((D E F))))
1: (MAGIC (((7 8) (0 H 0))))
2: (MAGIC ((7 8) (0 H 0)))
3: (MAGIC (7 8))
3: MAGIC returned ((7 8))
3: (MAGIC (0 H 0))
3: MAGIC returned ((0 H 0))
2: MAGIC returned ((7 8) (0 H 0))
1: MAGIC returned ((7 8) (0 H 0))
1: (MAGIC (((11 12))))
2: (MAGIC ((11 12)))
3: (MAGIC (11 12))
3: MAGIC returned ((11 12))
2: MAGIC returned ((11 12))
1: MAGIC returned ((11 12))
1: (MAGIC (((A B) (C D))))
2: (MAGIC ((A B) (C D)))
3: (MAGIC (A B))
3: MAGIC returned ((A B))
3: (MAGIC (C D))
3: MAGIC returned ((C D))
2: MAGIC returned ((A B) (C D))
1: MAGIC returned ((A B) (C D))
1: (MAGIC ((D E F)))
2: (MAGIC (D E F))
2: MAGIC returned ((D E F))
1: MAGIC returned ((D E F))
0: MYSTERIOUS returned ((7 8) (0 H 0) (11 12) (A B) (C D) (D E F))

关于list - 如何删除双括号并仅保留 lisp 中的嵌套列表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39079374/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com