Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Conversation

@msoeken
Copy link
Member

@msoeken msoeken commented Sep 22, 2020

This implements the ApplyTo{Head,Rest,Tail,Most}{,C,A,CA} combinators described in #313.

@msoeken msoeken requested review from cgranade and guenp September 22, 2020 09:51
Copy link
Contributor

@cgranade cgranade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this looks good so far, but I'd suggest additional unit tests and API documentation examples before merging this in.

msoeken and others added 2 commits September 23, 2020 11:04
Co-authored-by: Chris Granade <chgranad@microsoft.com>
@msoeken
Copy link
Member Author

msoeken commented Sep 23, 2020

Thanks for your comments @cgranade. I have added an example to each of the main operations (the one without A, C, and CA modifiers).

@msoeken msoeken requested a review from cgranade September 23, 2020 09:29
Copy link

@guenp guenp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Just out of curiosity, not sure how often this use case would come up but would it also be useful to apply an operation to any given element N of an array or all even/odd elements?

@cgranade cgranade merged commit 8437cdb into feature/arrays Sep 23, 2020
@cgranade cgranade deleted the msoeken/applyto-array branch September 23, 2020 16:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants