Documentation ¶
Index ¶
- func Abs(i int64) int64
- func Between(min, max int64) func(int64) bool
- func CantorPair(a, b int64) int64
- func CantorTuple(p []int64) int64
- func Capture(r *regexp.Regexp, s string) map[string]string
- func Combinations(n, r int) [][]int
- func EachLine(input string, fn func(string)) error
- func MustParse(s string) int64
- func Or(f, g func(int64) bool) func(int64) bool
- func Profile() (func(), error)
- func Scanner(input string, fn func(*bufio.Scanner)) error
- func ZN(i int64) int64
- type Grid
- func (h *Grid) Col(x int64) []interface{}
- func (h *Grid) Count() int64
- func (h *Grid) Each(fn func(interface{}))
- func (h *Grid) EachCol(fn func([]interface{}))
- func (h *Grid) EachLine(fn func([]interface{}))
- func (h *Grid) EachSparse(fn func(Point, interface{}))
- func (h *Grid) Grid() [][]interface{}
- func (h *Grid) Height() int64
- func (h *Grid) Neighbours(p Point) []Point
- func (h *Grid) Read(x, y int64) interface{}
- func (h *Grid) Row(y int64) []interface{}
- func (h *Grid) Width() int64
- func (h *Grid) Write(x, y int64, i interface{})
- type GridND
- type Point
- type PointND
- type Set
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CantorPair ¶
func CantorTuple ¶
func Combinations ¶
Types ¶
type Grid ¶
type Grid struct {
// contains filtered or unexported fields
}
func (*Grid) EachSparse ¶
func (*Grid) Neighbours ¶
type GridND ¶
type GridND struct {
// contains filtered or unexported fields
}
func (*GridND) EachSparse ¶
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
func Intersection ¶
func NewSetWithSize ¶
Click to show internal directories.
Click to hide internal directories.