MCPcopy Index your code
hub / github.com/adam-hanna/arrayOperations

github.com/adam-hanna/arrayOperations @v1.0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.1 ↗ · + Follow
33 symbols 58 edges 2 files 8 documented · 24% 1 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Build Status Coverage Status Go Report Card GoDoc

arrayOperations

Small utility library for performing common operations on slices in golang.

I don't promise that these are optimized (not even close!), but they work :)

Quickstart

var a = []int{1, 1, 2, 3}
var b = []int{2, 4}

diff := Difference[int](a, b)

// []int{1, 3}
fmt.Println(diff)

API

FindOneT any (T, bool)

ReduceT, A any A

FilterT any []T

MapT any []T

DistinctT comparable []T

IntersectT comparable []T

UnionT comparable []T

DifferenceT comparable []T

Docs

Docs are available, here

License

MIT

Core symbols most depended-on inside this repo

Distinct
called by 4
arrayOperations.go
FindOne
called by 2
arrayOperations.go
Reduce
called by 1
arrayOperations.go
Filter
called by 1
arrayOperations.go
Map
called by 1
arrayOperations.go
Intersect
called by 1
arrayOperations.go
Union
called by 1
arrayOperations.go
Difference
called by 1
arrayOperations.go

Shape

Function 21
TypeAlias 8
Struct 4

Languages

Go100%

Modules by API surface

arrayOperations_unit_test.go25 symbols
arrayOperations.go8 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add arrayOperations \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact