Skip to content

A working progress attempt of an iterator library for go.

Notifications You must be signed in to change notification settings

lucarin91/go-iterator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Iterator library

A working progress attempt of an iterator library for go. The objective of the library is also to support a set of functions for working with iterators, e.g., map, and flatten.

Iterator interface

The iterator is composed of two methods Next that advance the iterator and Get for getting the element pointed by the iterator. Here is a usage example:

it := ToIter([]int{1, 2, 3, 4})
for it.Next() {
    fmt.Println(it.Get())
}

About

A working progress attempt of an iterator library for go.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages