Skip to content

added tests and new operators#10

Merged
schrockblock merged 2 commits intomasterfrom
cjc8/new-operators
May 21, 2021
Merged

added tests and new operators#10
schrockblock merged 2 commits intomasterfrom
cjc8/new-operators

Conversation

@cjc8
Copy link
Contributor

@cjc8 cjc8 commented May 20, 2021

No description provided.

@cjc8 cjc8 requested a review from schrockblock May 20, 2021 19:13
Copy link
Contributor

@schrockblock schrockblock left a comment

Choose a reason for hiding this comment

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

Naming is hard. I have no answers. Let us pray to the naming gods, that they may guide our keyboards.

/**
This version works similar to the above tupleMap but allows the input functions to have return values, creates a function that returns a tuple of those values (i.e. a mix between tupleMap and fzip)
*/
public func tupleZip<T, U, V, W>(_ f: @escaping (T) -> V, _ g: @escaping (U) -> W) -> (T, U) -> (V, W) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This feels more like a map to me

@schrockblock schrockblock merged commit a39bdd3 into master May 21, 2021
@schrockblock schrockblock deleted the cjc8/new-operators branch May 21, 2021 01:32
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.

2 participants