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.
我正在使用新的 lambda 函数编写一个 SPLIT 函数,以基于分隔符递归地从文本字符串中提取项目。
问题是当我找到这些项目时,我需要在这些项目的内存中保留一个可变长度的列表,即随着我添加项目的长度增加的列表。
我在网上找不到解决方案,但最终偶然发现了这种简单的方法。这通过将新项目 B 添加到现有列表 A 的末尾来创建一个新列表
IF(SEQUENCE(1,COUNTA(A)+1)<COUNTA(A)+1, A, B)
我认为这可能对任何做递归 lambda 的人有用。