Discover Packages
github.com/noypi/mapk
package
module
Version:
v0.0.0-...-c9a6286
Opens a new window with list of versions in this module.
Published: Nov 14, 2017
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
mapk
BenchmarkPutTen_GTreap-8 1000000 1932 ns/op 640 B/op 30 allocs/op
BenchmarkGetTen_GTreap-8 1000000 1681 ns/op 480 B/op 20 allocs/op
BenchmarkEachFrom7of10_GTreap-8 5000000 291 ns/op 48 B/op 2 allocs/op
BenchmarkEachTen_GTreap-8 5000000 354 ns/op 64 B/op 2 allocs/op
BenchmarkDeleteAdd5of10_GTreap-8 200000 5250 ns/op 3215 B/op 86 allocs/op
BenchmarkPutTen_Slice-8 1000000 1768 ns/op 320 B/op 20 allocs/op
BenchmarkGetTen_Slice-8 1000000 1167 ns/op 160 B/op 10 allocs/op
BenchmarkEachFrom7of10_Slice-8 10000000 134 ns/op 16 B/op 1 allocs/op
BenchmarkEachTen_Slice-8 50000000 35.0 ns/op 0 B/op 0 allocs/op
BenchmarkDeleteAdd5of10_Slice-8 1000000 2012 ns/op 624 B/op 25 allocs/op
BenchmarkPutTen_Native-8 5000000 361 ns/op 0 B/op 0 allocs/op
BenchmarkGetTen_Native-8 10000000 187 ns/op 0 B/op 0 allocs/op
BenchmarkDeleteAdd5of10_Native-8 3000000 383 ns/op 0 B/op 0 allocs/op
BenchmarkEachFrom_Native_NOT_SUPPORTED-8 2000000000 0.00 ns/op 0 B/op 0 allocs/op
BenchmarkEachTen_Native-8 10000000 153 ns/op 0 B/op 0 allocs/op
Expand ▾
Collapse ▴
Documentation
¶
func CmpString(a, b interface{}) int
func ContainerOfMapSlice(m IMap ) _kvslist
func MapGTreap(comp func(a, b interface{}) int ) *_GtreapMap
type IMap interface {
Get(k interface{}) interface{}
Put(k, v interface{})
Delete(k interface{})
Has(k interface{}) bool
EachFrom(kprefix interface{}, cb func(k, v interface{}) bool )
Each(cb func(k, v interface{}) bool )
Len() int
Clear()
}
func Map(comp func(a, b interface{}) int ) IMap
func MapHeap(cmp func(a, b interface{}) int ) IMap
func MapSlice(cmp func(k, v interface{}) int ) IMap
Source Files
¶
Click to show internal directories.
Click to hide internal directories.