runeit

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package runeit allows for native Go runes to be used with iterators.

Iterator functions:

  • ToString - convert a rune iterator to a string
  • InString - provides a rune iterator from a string

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InString

func InString(v string) itkit.Iterator[rune]

InString returns an iterator which yields all runes in the given string.

func ToString

func ToString(it itkit.Iterator[rune]) string

ToString consumes the given rune iterator and returns the content as a string.

Types

type StringIterator added in v0.7.0

type StringIterator struct {
	// contains filtered or unexported fields
}

StringIterator represents an iterator yielding individual runes from a string.

func (*StringIterator) Next added in v0.7.0

func (it *StringIterator) Next() bool

func (*StringIterator) Value added in v0.7.0

func (it *StringIterator) Value() rune

Jump to

Keyboard shortcuts

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