Documentation ¶
Index ¶
- func Clean[V comparable](p *V) *V
- func Collect[V1 any, V2 any](p *V1, f func(V1) (V2, bool, error)) (*V2, error)
- func ContainsAll[V comparable](p *V, subset *V) bool
- func ContainsAny[V comparable](p *V, subset *V) bool
- func Count[V comparable](p *V, v V) int
- func CountBy[V any](p *V, f func(V) (bool, error)) (int, error)
- func Distinct[V comparable](p *V) *V
- func Drop[V any](p *V, n int) *V
- func DropWhile[V comparable](p *V, v V) *V
- func DropWhileBy[V any](p *V, f func(V) (bool, error)) (*V, error)
- func EndsWith[V comparable](p *V, subset *V) bool
- func Equal[V comparable](p1 *V, p2 *V) bool
- func EqualBy[V any](p1 *V, p2 *V, f func(V, V) (bool, error)) (bool, error)
- func Exists[V comparable](p *V, v V) bool
- func ExistsBy[V any](p *V, f func(V) (bool, error)) (bool, error)
- func Filter[V comparable](p *V, v V) *V
- func FilterBy[V any](p *V, f func(V) (bool, error)) (*V, error)
- func FilterNot[V comparable](p *V, v V) *V
- func FilterNotBy[V any](p *V, f func(V) (bool, error)) (*V, error)
- func Find[V comparable](p *V, v V) (V, bool)
- func FindBy[V any](p *V, f func(V) (bool, error)) (V, bool, error)
- func FlatMap[V1 any, V2 any](p *V1, f func(V1) (*V2, error)) (*V2, error)
- func Flatten[V any](p **V) *V
- func Fold[V1 any, V2 any](p *V1, v V2, f func(V2, V1) (V2, error)) (V2, error)
- func ForAll[V comparable](p *V, v V) bool
- func ForAllBy[V any](p *V, f func(V) (bool, error)) (bool, error)
- func ForEach[V any](p *V, f func(V) error) error
- func From[V any](v V) *V
- func FromFunc[V any](f func() *V) *V
- func FromIter[V any](iter iter.Iter[V]) *V
- func FromMap[K comparable, V any](m map[K]V) *tuple.T2[K, V]
- func FromMapKeys[K comparable, V any](m map[K]V) *K
- func FromMapValues[K comparable, V any](m map[K]V) *V
- func FromSlice[V any](slice []V) *V
- func Get[V any](p *V) (V, bool)
- func GetOrElse[V any](p *V, v V) V
- func GetOrFunc[V any](p *V, f func() (V, error)) (V, error)
- func GroupBy[K comparable, V any](p *V, f func(V) (K, error)) (map[K][]V, error)
- func Index[V comparable](p *V, v V) int
- func IndexBy[V any](p *V, f func(V) (bool, error)) (int, error)
- func Indices[V any](p *V) *int
- func Join[V any](p *V, separator V) *V
- func LastIndex[V comparable](p *V, v V) int
- func LastIndexBy[V any](p *V, f func(V) (bool, error)) (int, error)
- func Len[V any](p *V) int
- func Map[V1 any, V2 any](p *V1, f func(V1) (V2, error)) (*V2, error)
- func Max[V constraints.Ordered](p *V) V
- func MaxBy[V1 any, V2 constraints.Ordered](p *V1, f func(V1) (V2, error)) (V2, error)
- func Min[V constraints.Ordered](p *V) V
- func MinBy[V1 any, V2 constraints.Ordered](p *V1, f func(V1) (V2, error)) (V2, error)
- func Must[V1 any](v1 V1, err error) V1
- func Must2[V1 any, V2 any](v1 V1, v2 V2, err error) (V1, V2)
- func Must3[V1 any, V2 any, V3 any](v1 V1, v2 V2, v3 V3, err error) (V1, V2, V3)
- func Must4[V1 any, V2 any, V3 any, V4 any](v1 V1, v2 V2, v3 V3, v4 V4, err error) (V1, V2, V3, V4)
- func Must5[V1 any, V2 any, V3 any, V4 any, V5 any](v1 V1, v2 V2, v3 V3, v4 V4, v5 V5, err error) (V1, V2, V3, V4, V5)
- func Must6[V1 any, V2 any, V3 any, V4 any, V5 any, V6 any](v1 V1, v2 V2, v3 V3, v4 V4, v5 V5, v6 V6, err error) (V1, V2, V3, V4, V5, V6)
- func Option[V any](v V, ok bool) *V
- func Partition[V comparable](p *V, v V) (*V, *V)
- func PartitionBy[V any](p *V, f func(V) (bool, error)) (*V, *V, error)
- func Reduce[V any](p *V, f func(V, V) (V, error)) (V, error)
- func Replace[V comparable](p *V, old V, new V) *V
- func ReplaceAll[V comparable](p *V, old V, new V) *V
- func Span[V comparable](p *V, v V) (*V, *V)
- func SpanBy[V any](p *V, f func(V) (bool, error)) (*V, *V, error)
- func Split[V comparable](p *V, v V) (*V, *V)
- func SplitAfter[V comparable](p *V, v V) (*V, *V)
- func SplitAfterBy[V any](p *V, f func(V) (bool, error)) (*V, *V, error)
- func SplitBy[V any](p *V, f func(V) (bool, error)) (*V, *V, error)
- func StartsWith[V comparable](p *V, subset *V) bool
- func Sum[V constraints.Ordered | constraints.Complex](p *V) V
- func SumBy[V1 any, V2 constraints.Ordered | constraints.Complex](p *V1, f func(V1) (V2, error)) (V2, error)
- func Take[V any](p *V, n int) *V
- func TakeWhile[V comparable](p *V, v V) *V
- func TakeWhileBy[V any](p *V, f func(V) (bool, error)) (*V, error)
- func ToIter[V any](p *V) iter.Iter[V]
- func ToSlice[V any](p *V) []V
- func Unzip2[V1 any, V2 any](p *tuple.T2[V1, V2]) (*V1, *V2)
- func Unzip3[V1 any, V2 any, V3 any](p *tuple.T3[V1, V2, V3]) (*V1, *V2, *V3)
- func Unzip4[V1 any, V2 any, V3 any, V4 any](p *tuple.T4[V1, V2, V3, V4]) (*V1, *V2, *V3, *V4)
- func Unzip5[V1 any, V2 any, V3 any, V4 any, V5 any](p *tuple.T5[V1, V2, V3, V4, V5]) (*V1, *V2, *V3, *V4, *V5)
- func Unzip6[V1 any, V2 any, V3 any, V4 any, V5 any, V6 any](p *tuple.T6[V1, V2, V3, V4, V5, V6]) (*V1, *V2, *V3, *V4, *V5, *V6)
- func Zip2[V1 any, V2 any](p1 *V1, p2 *V2) *tuple.T2[V1, V2]
- func Zip3[V1 any, V2 any, V3 any](p1 *V1, p2 *V2, p3 *V3) *tuple.T3[V1, V2, V3]
- func Zip4[V1 any, V2 any, V3 any, V4 any](p1 *V1, p2 *V2, p3 *V3, p4 *V4) *tuple.T4[V1, V2, V3, V4]
- func Zip5[V1 any, V2 any, V3 any, V4 any, V5 any](p1 *V1, p2 *V2, p3 *V3, p4 *V4, p5 *V5) *tuple.T5[V1, V2, V3, V4, V5]
- func Zip6[V1 any, V2 any, V3 any, V4 any, V5 any, V6 any](p1 *V1, p2 *V2, p3 *V3, p4 *V4, p5 *V5, p6 *V6) *tuple.T6[V1, V2, V3, V4, V5, V6]
- func ZipWithIndex[V any](p *V) *tuple.T2[V, int]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsAny ¶
func ContainsAny[V comparable](p *V, subset *V) bool
他のポインタの値がひとつでも存在していたらtrueを返す。
func DropWhileBy ¶
条件を満たし続ける先頭の値を除いたポインタを返す。
func FilterNotBy ¶
条件を満たす値を除いたポインタを返す。
func FromMap ¶
func FromMap[K comparable, V any](m map[K]V) *tuple.T2[K, V]
マップからポインタをつくる。 ふたつ目以降の値は無視される。
func FromMapKeys ¶
func FromMapKeys[K comparable, V any](m map[K]V) *K
マップのキーからポインタをつくる。 ふたつ目以降の値は無視される。
func FromMapValues ¶
func FromMapValues[K comparable, V any](m map[K]V) *V
マップの値からポインタをつくる。 ふたつ目以降の値は無視される。
func GroupBy ¶
func GroupBy[K comparable, V any](p *V, f func(V) (K, error)) (map[K][]V, error)
値ごとに関数の返すキーでグルーピングしたマップを返す。
func LastIndexBy ¶
条件を満たす最後の値の位置を返す。
func MaxBy ¶
func MaxBy[V1 any, V2 constraints.Ordered](p *V1, f func(V1) (V2, error)) (V2, error)
値を変換して最大の値を返す
func MinBy ¶
func MinBy[V1 any, V2 constraints.Ordered](p *V1, f func(V1) (V2, error)) (V2, error)
値を変換して最小の値を返す
func Must5 ¶
func Must5[V1 any, V2 any, V3 any, V4 any, V5 any](v1 V1, v2 V2, v3 V3, v4 V4, v5 V5, err error) (V1, V2, V3, V4, V5)
エラーがあるときpanicにする。
func Must6 ¶
func Must6[V1 any, V2 any, V3 any, V4 any, V5 any, V6 any](v1 V1, v2 V2, v3 V3, v4 V4, v5 V5, v6 V6, err error) (V1, V2, V3, V4, V5, V6)
エラーがあるときpanicにする。
func PartitionBy ¶
条件を満たすポインタと満たさないポインタを返す。
func SplitAfterBy ¶
条件を満たす値の直後で分割したふたつのポインタを返す。
func SumBy ¶
func SumBy[V1 any, V2 constraints.Ordered | constraints.Complex](p *V1, f func(V1) (V2, error)) (V2, error)
値を変換して合計を演算する。
func TakeWhileBy ¶
条件を満たし続ける先頭の値のポインタを返す。
func Unzip5 ¶
func Unzip5[V1 any, V2 any, V3 any, V4 any, V5 any](p *tuple.T5[V1, V2, V3, V4, V5]) (*V1, *V2, *V3, *V4, *V5)
値のペアを分離して5つのポインタを返す。
func Unzip6 ¶
func Unzip6[V1 any, V2 any, V3 any, V4 any, V5 any, V6 any](p *tuple.T6[V1, V2, V3, V4, V5, V6]) (*V1, *V2, *V3, *V4, *V5, *V6)
値のペアを分離して6つのポインタを返す。
func Zip5 ¶
func Zip5[V1 any, V2 any, V3 any, V4 any, V5 any](p1 *V1, p2 *V2, p3 *V3, p4 *V4, p5 *V5) *tuple.T5[V1, V2, V3, V4, V5]
5つのポインタの同じ位置の値をペアにしたポインタを返す。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.