traverse

package
v0.0.0-...-e3f2fdf Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package traverse contains the implementation of the traverse plugin, which generates the deriveTraverse function.

The deriveTraverse function applies a given function to each element of a list, returning a list of results in the same order or an error.

deriveTraverse(func(A) (B, error), []A) ([]B, error)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New is a constructor for the traverse code generator. This generator should be reconstructed for each package.

func NewPlugin

func NewPlugin() derive.Plugin

NewPlugin creates a new traverse plugin. This function returns the plugin name, default prefix and a constructor for the traverse code generator.

Types

This section is empty.

Jump to

Keyboard shortcuts

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