Difference between revisions of "Array.collect()"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "Also same as Array.suchthat()")
 
Line 1: Line 1:
 
Also same as [[Array.suchthat() | Array.suchthat()]]
 
Also same as [[Array.suchthat() | Array.suchthat()]]
 +
 +
 +
Related to
 +
 +
Array.prototype.collectwhile=Array.prototype.filteroncondition.curry(0);
 +
 +
Array.prototype.suchthat=Array.prototype.filteroncondition.curry(0);
 +
 +
Array.prototype.collect=Array.prototype.suchthat;
 +
 +
Array.prototype.takewhile=Array.prototype.filteroncondition.curry(1);
 +
 +
Array.prototype.dropwhile=Array.prototype.filteroncondition.curry(2);
 +
 +
 +
Array.prototype.collectwhileasvector=Array.prototype.filteroncondition.curry(10);
 +
 +
Array.prototype.suchthatasvector=Array.prototype.filteroncondition.curry(10);
 +
 +
Array.prototype.collectasvector=Array.prototype.suchthatasvector;
 +
 +
Array.prototype.takewhileasvector=Array.prototype.filteroncondition.curry(11);
 +
 +
Array.prototype.dropwhileasvector=Array.prototype.filteroncondition.curry(12);
 +
 +
 +
Array.prototype.splitwhile=Array.prototype.partitiononcondition.curry(0);
 +
 +
Array.prototype.splitwhileasvector=Array.prototype.partitiononcondition.curry(10);
 +
 +
To be documented.

Revision as of 15:45, 4 February 2020

Also same as Array.suchthat()


Related to

Array.prototype.collectwhile=Array.prototype.filteroncondition.curry(0);

Array.prototype.suchthat=Array.prototype.filteroncondition.curry(0);

Array.prototype.collect=Array.prototype.suchthat;

Array.prototype.takewhile=Array.prototype.filteroncondition.curry(1);

Array.prototype.dropwhile=Array.prototype.filteroncondition.curry(2);


Array.prototype.collectwhileasvector=Array.prototype.filteroncondition.curry(10);

Array.prototype.suchthatasvector=Array.prototype.filteroncondition.curry(10);

Array.prototype.collectasvector=Array.prototype.suchthatasvector;

Array.prototype.takewhileasvector=Array.prototype.filteroncondition.curry(11);

Array.prototype.dropwhileasvector=Array.prototype.filteroncondition.curry(12);


Array.prototype.splitwhile=Array.prototype.partitiononcondition.curry(0);

Array.prototype.splitwhileasvector=Array.prototype.partitiononcondition.curry(10);

To be documented.