Skip to content

Conversation

@ColmBhandal
Copy link
Owner

Description

Added functions to 2D arrays allowing for the last used row/column to be calculated.

…ast index

The fold and find last index functions already existed
Fold is part of this library
Find last index is a static function on the Array class
The fold we do chooses whichever element satisfies the predicate - if neither does then the choice doesn't matter
…umentation

New functions return the last row/column where a given predicate over the entire row/column is true
Using the new functions, the usage predicate for a given row/column is whether there exists a single element in that row/column that's used
Added documentation to make it clear that the usage predicate is existentially, rather than universally, quantified to build the row/column predicate
@ColmBhandal ColmBhandal merged commit f1d3d8d into develop Aug 13, 2020
@ColmBhandal ColmBhandal deleted the feature/last-used-row-column branch August 13, 2020 09:14
@ColmBhandal ColmBhandal linked an issue Aug 13, 2020 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Last Used Row/Column

3 participants