clone

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package clone provides slice clone aliases

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deep added in v0.0.5

func Deep[TS ~[]T, T any](elements TS, copier func(T) T) TS

Deep is slice.DeepClone alias

func Of

func Of[TS ~[]T, T any](elements TS) TS

Of is slice.Clone alias

func Ptr added in v0.0.7

func Ptr[T any](p *T) *T

Ptr returns a pointer to a copy of the value pointed to by the 'p'

Types

This section is empty.

Directories

Path Synopsis
Package reverse provides shor aliases for cloning slices with the elements in reverse order
Package reverse provides shor aliases for cloning slices with the elements in reverse order
Package sort provides sorting of cloned slice elements
Package sort provides sorting of cloned slice elements
Package stablesort provides stable sorting of cloned slice elements
Package stablesort provides stable sorting of cloned slice elements

Jump to

Keyboard shortcuts

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