Qurak

FoldWhileList

उपलब्ध

Like `FoldList`, but stops once the predicate returns `False`.

FoldWhileList[f, x, {a1, a2, …}, test]
FoldWhileList[f, list, test]
FoldWhileList[f, x, {a1, a2, …}, test, m]
FoldWhileList[f, x, {a1, a2, …}, test, All]
FoldWhileList[f, x, {a1, a2, …}, test, m, n]
FoldWhileList[f, x, {a1, a2, …}, test, m, - n]
FoldWhileList[f, test]
FoldWhileList[Plus, 0, {1, 2, 3, 4}, # < 5 &] → {0, 1, 3, 6}FoldWhileList[#1 + #2 &, 0, {1, 2, 3, 4}, # < 4 &, 1, -1] → {0, 1, 3}FoldWhileList[#1 + #2 &, # < 4 &][{1, 2, 3, 4}] → {1, 3, 6}

विषय

संबंधित

सभी 6300 फ़ंक्शन · इसे किसी MCP क्लाइंट से उपयोग करें