lda

package
v0.0.0-...-e95b93a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package lda implements lodash core api

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assign

func Assign(obj interface{}, sources ...interface{})

assign sources props to obj (only obj=>obj,map=>map)

func Chunk

func Chunk(array []interface{}, size int) [][]interface{}

chunk array to list array with size

func Difference

func Difference(array []interface{}, values ...interface{}) []interface{}

remove difference values from array, complex object use DifferenceBy or DifferenceWith

func DifferenceBy

func DifferenceBy(array []interface{}, values []interface{}, iteratee interface{}) []interface{}

remove difference values from array by field name or func

func DifferenceWith

func DifferenceWith(array []interface{}, values []interface{}, comparator utils.Comparator) []interface{}

remove difference values from array by comparator func

func Filter

func Filter(collection []interface{}, predicate interface{}) []interface{}

filter collection use map field or func

func GroupBy

func GroupBy(collection []interface{}, iteratee interface{}) map[string][]interface{}

group by collection use field name or func

func Intersection

func Intersection(arrays ...[]interface{}) []interface{}

find intersection from arrays, complex object use IntersectionBy or IntersectionWith

func IntersectionBy

func IntersectionBy(array []interface{}, values []interface{}, iteratee interface{}) []interface{}

find intersection by field name or func

func IntersectionWith

func IntersectionWith(array []interface{}, values []interface{}, comparator utils.Comparator) []interface{}

find intersection by comparator func

func IsNil

func IsNil(i interface{}) bool

is nil

func KeyBy

func KeyBy(collection []interface{}, iteratee interface{}) map[string]interface{}

key by collection use field name or func

func Map

func Map(collection []interface{}, iteratee interface{}) []interface{}

map collection use field name or func

func Values

func Values(obj interface{}) []interface{}

values from map only support AMapStrStr,AMapStrInf

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL