Documentation
¶
Index ¶
- Constants
- Variables
- func IsErrNotFound(err error) bool
- func MakeErrNotFound(value interfaces.Stringer) error
- func MakeErrNotFoundString(s string) error
- func MakeKey(ss ...fmt.Stringer) string
- func MakeTryFinally[T any](try interfaces.FuncIter[T], finally interfaces.FuncIter[T]) interfaces.FuncIter[T]
- func MakeWriterNoop[T any]() interfaces.FuncIter[T]
- func WriterContainer[T interfaces.Element](s interfaces.SetLike[T], sigil error) interfaces.FuncIter[T]
- type Bitset
- type ErrEmptyKey
- type KeyFunc
Constants ¶
View Source
const (
MaxBitsetIdx = 100_000
)
Variables ¶
View Source
var ( ErrNilPointer = errors.New("nil pointer") ErrExists = errors.New("exists") MakeErrStopIteration = errors.MakeErrStopIteration ErrNotFound = errNotFound("not found") )
Functions ¶
func IsErrNotFound ¶
func MakeErrNotFound ¶
func MakeErrNotFound(value interfaces.Stringer) error
func MakeErrNotFoundString ¶
func MakeTryFinally ¶
func MakeTryFinally[T any]( try interfaces.FuncIter[T], finally interfaces.FuncIter[T], ) interfaces.FuncIter[T]
TODO-P3 move to iter
func WriterContainer ¶
func WriterContainer[T interfaces.Element]( s interfaces.SetLike[T], sigil error, ) interfaces.FuncIter[T]
Types ¶
type Bitset ¶
type Bitset interface {
Equals(Bitset) bool
Len() int
Cap() int
Get(int) bool
CountOn() int
CountOff() int
EachOn(interfaces.FuncIter[int]) error
EachOff(interfaces.FuncIter[int]) error
Add(int)
Del(int)
DelIfPresent(int)
// contains filtered or unexported methods
}
func MakeBitset ¶
func MakeBitsetOn ¶
type ErrEmptyKey ¶
type ErrEmptyKey[T any] struct { Element T }
func (ErrEmptyKey[T]) Error ¶
func (e ErrEmptyKey[T]) Error() string
func (ErrEmptyKey[T]) Is ¶
func (e ErrEmptyKey[T]) Is(target error) (ok bool)
Click to show internal directories.
Click to hide internal directories.