You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider adding an operator that remove items from the tail end of a sequence while a given predicate returns true. The proposed name and signature would be:
varxs=new[]{1,2,0,0,// will be preserved (not in tail position)3,4,0,0,// will be removed};varresult=xs.SkipLastWhile(x =>xis0);Console.WriteLine(result.ToDelimitedString(", "));
Output:
1, 2, 0, 0, 3, 4
The text was updated successfully, but these errors were encountered:
ArmoryNode
added a commit
to ArmoryNode/MoreLINQ
that referenced
this issue
Oct 22, 2024
Consider adding an operator that remove items from the tail end of a sequence while a given predicate returns true. The proposed name and signature would be:
Example:
Output:
The text was updated successfully, but these errors were encountered: