011range

command
v0.0.0-...-db3ee8d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2021 License: MPL-2.0 Imports: 1 Imported by: 0

README

Range

range() iterates over elements in a variety of data structures. range() on arrays and slices provides both the index and value for each entry.

We ignore variables using the blank identifier _ (underscore).

range() on a map iterates over key/value pairs; can also iterate over just the keys of a map.

range() on strings iterates over Unicode code points. The first value is the starting byte index of the rune and the second the rune itself.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL