Qurak

Longest

उपलब्ध, .wl संदर्भ से भिन्न

`Longest[p]` tries the longest split of a sequence pattern first; the default

Longest[p]
{1, 2, 3} /. {Longest[x__], y__} :> {{x}, {y}} → {{1, 2}, {3}}{1, 2, 3} /. {Shortest[x__], y__} :> {{x}, {y}} → {{1}, {2, 3}}{{1, 2, 3} /. {Longest[x_], ___} :> x, MatchQ[{1, 2}, {Longest[__], _}]} → {1, True}

विषय

संबंधित

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