Skip to content

Implementation of iterators in Go by leveraging the experimental range-over functionality

Notifications You must be signed in to change notification settings

af-md/goiterators

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GO ITERATORS

This repo contains an example implementation of iterators using the newly available feature "range over func"

To track this feature: golang/go#61405

How to install this experimental feature:

go install golang.org/dl/gotip@latest
gotip download 510541   # download and build CL 510541
gotip version  # should say "(w/ rangefunc)" or just output a hash

How to run the code with the feature:

GOEXPERIMENT=range gotip test main_test.go  -bench .

About

Implementation of iterators in Go by leveraging the experimental range-over functionality

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages