Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
Contains returns a boolean based on whether a value is contained in the given slice.
func ReverseArray ¶
ReverseArray returns the given array in reversed order.
func Unique ¶ added in v0.1.1
Unique returns a new slice with only unique values from the original slice.
Example ¶
package main import ( "fmt" slices "github.com/taubyte/utils/slices/string" ) func main() { s := []string{"one", "two", "three", "two"} s = slices.Unique(s) fmt.Println(s) }
Output: [one two three]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.