Skip to content

Conversation

@lucarin91
Copy link
Collaborator

@lucarin91 lucarin91 commented Jan 19, 2026

A first set of iterator manipulation functions.

@lucarin91 lucarin91 requested a review from cmaglie January 28, 2026 10:25
@lucarin91 lucarin91 marked this pull request as ready for review January 28, 2026 10:27
}
}

// Map applies the Mapper function to each element of the iterator.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// Map applies the Mapper function to each element of the iterator.
// MapIter applies the Mapper function to each element of the iterator.


import "iter"

// FilterIter takes an iterator and a matcher and returns only those elements that satisfy the matcher.
Copy link
Member

@cmaglie cmaglie Jan 28, 2026

Choose a reason for hiding this comment

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

Suggested change
// FilterIter takes an iterator and a matcher and returns only those elements that satisfy the matcher.
// FilterIter takes an iterator and a matcher and returns an iterator that yields only those
// elements that satisfy the matcher.

}
}

// Reducer is a function that reduces an iterator's elements to a single value.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// Reducer is a function that reduces an iterator's elements to a single value.
// ReduceIter is a function that reduces an iterator's elements to a single value.

@@ -0,0 +1,41 @@
package f
Copy link
Member

Choose a reason for hiding this comment

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

Missing license header

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