Qurak

NestWhileList

可用

Like `NestWhile` but returns the entire history.

NestWhileList[f, expr, test]
NestWhileList[f, expr, test, m]
NestWhileList[f, expr, test, All]
NestWhileList[f, expr, test, m, max]
NestWhileList[#/2 &, 8, EvenQ] → {8, 4, 2, 1}

用于

主题

相关

全部 6300 个函数 · 从 MCP 客户端使用