Documentation ¶
Overview ¶
Package collections allows to interact with lists of things.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListContains ¶
ListContains returns true if the given list of strings (haystack) contains the given string (needle).
func ListIntersection ¶
ListIntersection returns all the items in both list1 and list2. Note that this will dedup the items so that the output is more predictable. Otherwise, the end list depends on which list was used as the base.
func ListSubtract ¶
ListSubtract removes all the items in list2 from list1.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.