Documentation ¶
Overview ¶
Package ptr treats pointers as golang's native options.
Index ¶
- func Filter[T any](tPtr *T, p funcs.Predicate[T]) *T
- func FilterNot[T any](t *T, p funcs.Predicate[T]) *T
- func FlatMap[T any, R any](t *T, fMapper funcs.Mapper[*T, *R]) *R
- func Map[T any, R any](t *T, mapper funcs.Mapper[T, R]) *R
- func Nil[T any]() *T
- func None[T any]() *T
- func Of[T any](t T) *T
- func ToSlice[T any](t *T) []T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.