toolkit

module
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: MIT

README

toolkit

开发项目用到的工具库, 借鉴了部分开源项目的utility, 避免每次都造轮子。

ds包

该包包含常见的数据结构以及一些函数式方法

Fp函数式相关
  • FpEach*
    迭代集合中元素,本地修改然后返回原先的集合
  • FpEvery*
    迭代集合中元素,判断是否所有元素都满足条件, 返回布尔值
  • FpFilter*
    迭代集合中元素,判断是否有满足条件的元素,返回满足条件元素的集合
  • FpIter*
    迭代集合中元素,只是读取元素内容,不做任何操作
  • FpMap*
    迭代集合中元素,作用生成新的元素, 返回新的集合
  • FpPartition*
    迭代集合中的元素,根据条件拆分成两个集合
  • FpPartial*
    绑定函数参数

Directories

Path Synopsis
Package ds Dlist copy from https://github.com/chen3feng/stl4go/blob/master/dlist.go
Package ds Dlist copy from https://github.com/chen3feng/stl4go/blob/master/dlist.go

Jump to

Keyboard shortcuts

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