Help us shape the future of Go! Take the 2026 Go Developer Survey

array

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AtHead

func AtHead[A any]() L.Lens[[]A, O.Option[A]]

AtHead focusses on the head of an array. The setter works as follows - if the new value is none, the result will be an empty array - if the new value is some and the array is empty, it creates a new array with one element - if the new value is some and the array is not empty, it replaces the head

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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