utils

package module
v0.0.0-...-db520ed Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 2 Imported by: 0

README

Utility functions

Some utility functions for my go projects

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveAt

func RemoveAt[S ~[]E, E any](s S, i int) S

Removes from the slice at index i Very improtant note, IT DOESN'T PRESERVE ORDER o(1) i think :)

func RemoveAtOrdered

func RemoveAtOrdered[S ~[]E, E any](s S, i int) S

Removes from the slice at index i It does preserve order o(n)

Types

This section is empty.

Jump to

Keyboard shortcuts

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