package generic

import "github.com/IBM/fp-go/optics/traversal/array/generic/const"

Index

Functions

func FromArray

func FromArray[GA ~[]A, E, A any](m M.Monoid[E]) G.Traversal[GA, A, C.Const[E, GA], C.Const[E, A]]

FromArray returns a traversal from an array for the const monad

Source Files

traversal.go

Version
v1.0.151 (latest)
Published
Nov 23, 2024
Platform
linux/amd64
Imports
4 packages
Last checked
4 months ago

Tools for package owners.