Changes

Jump to navigation Jump to search
no edit summary
Line 54: Line 54:  
Array.prototype.splitwhileasvector=Array.prototype.partitiononcondition with SomeTakeDropOrAllFlag(10);
 
Array.prototype.splitwhileasvector=Array.prototype.partitiononcondition with SomeTakeDropOrAllFlag(10);
    +
 +
Please note that "asvector" implies each row in the array is treated as one to check the condition (like a vector).
 +
 +
For example, [1..10,2..3].collectwhileasvector("x[0]<5") will give the answer as the input itself, because in both rows, x[0] <5 is true. Here for each vector (or row), the function is applied to check if it should be collected or not.
    
Generally the flag means:
 
Generally the flag means:
2,824

edits

Navigation menu