Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dedupe ¶
func Dedupe[S ~[]E, E comparable](s S) S
Dedupe returns a string slice with duplicate values removed. First observance is kept.
func MakeMatrix2D ¶ added in v0.44.0
MakeMatrix2D returns a 2-dimensional matrix. Usage as follows `a := Make2D[uint8](dy, dx)`. Sourced from: https://stackoverflow.com/a/71781206/1908967
func Reverse ¶ added in v0.45.0
func Reverse[E comparable](s []E)
Reverse reverses the order of a slice. Stack Overflow: https://stackoverflow.com/a/71904070/1908967
func Sub ¶ added in v0.45.0
func Sub[S ~[]E, E comparable](s, t S) S
Sub returns a string slice with duplicate values removed. First observance is kept.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.