New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added zip3 and associated functions to Prelude.Vect #1635

Merged
merged 5 commits into from Oct 16, 2014

Conversation

Projects
None yet
4 participants
@japesinator
Contributor

japesinator commented Oct 14, 2014

I added the zipWith3, zip3, and unzip3 functions to Prelude.Vect

@crufter

View changes

Show outdated Hide outdated libs/prelude/Prelude/Vect.idr
@japesinator

This comment has been minimized.

Show comment
Hide comment
@japesinator

japesinator Oct 14, 2014

Contributor

@Johnny-John To be honest, I thought that was a bit weird too, but I borrowed the style from zipWith and the Prelude.List zipWith3

Contributor

japesinator commented Oct 14, 2014

@Johnny-John To be honest, I thought that was a bit weird too, but I borrowed the style from zipWith and the Prelude.List zipWith3

@Melvar

This comment has been minimized.

Show comment
Hide comment
@Melvar

Melvar Oct 14, 2014

Collaborator

It’s quite possible those were written before the comma-separated style was implemented.

Collaborator

Melvar commented Oct 14, 2014

It’s quite possible those were written before the comma-separated style was implemented.

@japesinator

This comment has been minimized.

Show comment
Hide comment
@japesinator

japesinator Oct 14, 2014

Contributor

I think perhaps the best option is to merge this and then submit a pull request that would move from \x => \y => style to \x,y => style globally

Contributor

japesinator commented Oct 14, 2014

I think perhaps the best option is to merge this and then submit a pull request that would move from \x => \y => style to \x,y => style globally

@japesinator

This comment has been minimized.

Show comment
Hide comment
@japesinator

japesinator Oct 14, 2014

Contributor

If you're curious, grep -re '\\. => \\. =>' . -I | wc -l shows that there are 18 places in the current codebase the \x => \y => style is used, and grep -re '\\.\,.' . -I | wc -l shows there are 30 places the \x,y => style is used.

Contributor

japesinator commented Oct 14, 2014

If you're curious, grep -re '\\. => \\. =>' . -I | wc -l shows that there are 18 places in the current codebase the \x => \y => style is used, and grep -re '\\.\,.' . -I | wc -l shows there are 30 places the \x,y => style is used.

@japesinator

This comment has been minimized.

Show comment
Hide comment
@japesinator

japesinator Oct 14, 2014

Contributor

I changed the lambdas to the style used in #1638

Contributor

japesinator commented Oct 14, 2014

I changed the lambdas to the style used in #1638

edwinb added a commit that referenced this pull request Oct 16, 2014

Merge pull request #1635 from japesinator/add_zip3_vects
Added zip3 and associated functions to Prelude.Vect

@edwinb edwinb merged commit f5f4fbe into idris-lang:master Oct 16, 2014

1 check passed

continuous-integration/travis-ci The Travis CI build passed
Details

@japesinator japesinator deleted the japesinator:add_zip3_vects branch Oct 17, 2014

msmorgan pushed a commit to msmorgan/Idris-dev that referenced this pull request Aug 28, 2017

Merge pull request #1635 from japesinator/add_zip3_vects
Added zip3 and associated functions to Prelude.Vect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment