Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我输入一个向量并想翻转元素的顺序,我会写
(reverse [1 2 3])
现在,我将如何推广这个想法以便能够输入嵌套向量并翻转元素的顺序?给定一个矩阵 A,该函数应该反转每一列中的元素。
根据您在评论中给出的示例,这正是reverse给定包含集合的集合的原因。你想要reverse。
reverse