Documentation ¶
Overview ¶
Package sudoku - generated by fungen; DO NOT EDIT
Index ¶
- func PrintGrid(grid string) error
- type Cell
- type CellList
- func (l CellList) All(f func(Cell) bool) bool
- func (l CellList) Any(f func(Cell) bool) bool
- func (l CellList) Drop(n int) CellList
- func (l CellList) DropWhile(f func(Cell) bool) CellList
- func (l CellList) Each(f func(Cell)) CellList
- func (l CellList) EachI(f func(int, Cell)) CellList
- func (l CellList) Filter(f func(Cell) bool) CellList
- func (l CellList) FilterMapInt(fMap func(Cell) int, fFilters ...func(Cell) bool) intList
- func (l CellList) FilterMapInt8(fMap func(Cell) int8, fFilters ...func(Cell) bool) int8List
- func (l CellList) FilterMapNumCount(fMap func(Cell) numCount, fFilters ...func(Cell) bool) numCountList
- func (l CellList) FilterMapPos(fMap func(Cell) Pos, fFilters ...func(Cell) bool) PosList
- func (l CellList) Map(f func(Cell) Cell) CellList
- func (l CellList) MapInt(f func(Cell) int) intList
- func (l CellList) MapInt8(f func(Cell) int8) int8List
- func (l CellList) MapNumCount(f func(Cell) numCount) numCountList
- func (l CellList) MapPos(f func(Cell) Pos) PosList
- func (l CellList) PFilter(f func(Cell) bool) CellList
- func (l CellList) PFilterMapInt(fMap func(Cell) int, fFilters ...func(Cell) bool) intList
- func (l CellList) PFilterMapInt8(fMap func(Cell) int8, fFilters ...func(Cell) bool) int8List
- func (l CellList) PFilterMapNumCount(fMap func(Cell) numCount, fFilters ...func(Cell) bool) numCountList
- func (l CellList) PFilterMapPos(fMap func(Cell) Pos, fFilters ...func(Cell) bool) PosList
- func (l CellList) PMap(f func(Cell) Cell) CellList
- func (l CellList) PMapInt(f func(Cell) int) intList
- func (l CellList) PMapInt8(f func(Cell) int8) int8List
- func (l CellList) PMapNumCount(f func(Cell) numCount) numCountList
- func (l CellList) PMapPos(f func(Cell) Pos) PosList
- func (l CellList) Reduce(t1 Cell, f func(Cell, Cell) Cell) Cell
- func (l CellList) ReduceRight(t1 Cell, f func(Cell, Cell) Cell) Cell
- func (l CellList) Take(n int) CellList
- func (l CellList) TakeWhile(f func(Cell) bool) CellList
- type DefaultLogger
- type Logger
- type Pos
- type PosList
- func (l PosList) All(f func(Pos) bool) bool
- func (l PosList) Any(f func(Pos) bool) bool
- func (l PosList) Drop(n int) PosList
- func (l PosList) DropWhile(f func(Pos) bool) PosList
- func (l PosList) Each(f func(Pos)) PosList
- func (l PosList) EachI(f func(int, Pos)) PosList
- func (l PosList) Filter(f func(Pos) bool) PosList
- func (l PosList) FilterMapCell(fMap func(Pos) Cell, fFilters ...func(Pos) bool) CellList
- func (l PosList) FilterMapInt(fMap func(Pos) int, fFilters ...func(Pos) bool) intList
- func (l PosList) FilterMapInt8(fMap func(Pos) int8, fFilters ...func(Pos) bool) int8List
- func (l PosList) FilterMapNumCount(fMap func(Pos) numCount, fFilters ...func(Pos) bool) numCountList
- func (l PosList) Map(f func(Pos) Pos) PosList
- func (l PosList) MapCell(f func(Pos) Cell) CellList
- func (l PosList) MapInt(f func(Pos) int) intList
- func (l PosList) MapInt8(f func(Pos) int8) int8List
- func (l PosList) MapNumCount(f func(Pos) numCount) numCountList
- func (l PosList) PFilter(f func(Pos) bool) PosList
- func (l PosList) PFilterMapCell(fMap func(Pos) Cell, fFilters ...func(Pos) bool) CellList
- func (l PosList) PFilterMapInt(fMap func(Pos) int, fFilters ...func(Pos) bool) intList
- func (l PosList) PFilterMapInt8(fMap func(Pos) int8, fFilters ...func(Pos) bool) int8List
- func (l PosList) PFilterMapNumCount(fMap func(Pos) numCount, fFilters ...func(Pos) bool) numCountList
- func (l PosList) PMap(f func(Pos) Pos) PosList
- func (l PosList) PMapCell(f func(Pos) Cell) CellList
- func (l PosList) PMapInt(f func(Pos) int) intList
- func (l PosList) PMapInt8(f func(Pos) int8) int8List
- func (l PosList) PMapNumCount(f func(Pos) numCount) numCountList
- func (l PosList) Reduce(t1 Pos, f func(Pos, Pos) Pos) Pos
- func (l PosList) ReduceRight(t1 Pos, f func(Pos, Pos) Pos) Pos
- func (l PosList) Take(n int) PosList
- func (l PosList) TakeWhile(f func(Pos) bool) PosList
- type Sudoku
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CellList ¶
type CellList []Cell
CellList is the type for a list that holds members of type Cell
func (CellList) All ¶
All is a method on CellList that returns true if all the members of the list satisfy a function or if the list is empty.
func (CellList) Any ¶
Any is a method on CellList that returns true if at least one member of the list satisfies a function. It returns false if the list is empty.
func (CellList) Drop ¶
Drop is a method on CellList that takes an integer n and returns all but the first n elements of the original list. If the list contains fewer than n elements then an empty list is returned.
func (CellList) DropWhile ¶
DropWhile is a method on CellList that takes a function of type Cell -> bool and returns a list of type CellList which excludes the first members from the original list for which the function returned true
func (CellList) Each ¶
Each is a method on CellList that takes a function of type Cell -> void and applies the function to each member of the list and then returns the original list.
func (CellList) EachI ¶
EachI is a method on CellList that takes a function of type (int, Cell) -> void and applies the function to each member of the list and then returns the original list. The int parameter to the function is the index of the element.
func (CellList) Filter ¶
Filter is a method on CellList that takes a function of type Cell -> bool returns a list of type CellList which contains all members from the original list for which the function returned true
func (CellList) FilterMapInt ¶
FilterMapInt is a method on CellList that applies the filter(s) and map to the list members in a single loop and returns the resulting list.
func (CellList) FilterMapInt8 ¶
FilterMapInt8 is a method on CellList that applies the filter(s) and map to the list members in a single loop and returns the resulting list.
func (CellList) FilterMapNumCount ¶
func (l CellList) FilterMapNumCount(fMap func(Cell) numCount, fFilters ...func(Cell) bool) numCountList
FilterMapNumCount is a method on CellList that applies the filter(s) and map to the list members in a single loop and returns the resulting list.
func (CellList) FilterMapPos ¶
FilterMapPos is a method on CellList that applies the filter(s) and map to the list members in a single loop and returns the resulting list.
func (CellList) Map ¶
Map is a method on CellList that takes a function of type Cell -> Cell and applies it to every member of CellList
func (CellList) MapInt ¶
MapInt is a method on CellList that takes a function of type Cell -> int and applies it to every member of CellList
func (CellList) MapInt8 ¶
MapInt8 is a method on CellList that takes a function of type Cell -> int8 and applies it to every member of CellList
func (CellList) MapNumCount ¶
MapNumCount is a method on CellList that takes a function of type Cell -> numCount and applies it to every member of CellList
func (CellList) MapPos ¶
MapPos is a method on CellList that takes a function of type Cell -> Pos and applies it to every member of CellList
func (CellList) PFilter ¶
PFilter is similar to the Filter method except that the filter is applied to all the elements in parallel. The order of resulting elements cannot be guaranteed.
func (CellList) PFilterMapInt ¶
PFilterMapInt is similar to FilterMapInt except that it executes the method on each member in parallel.
func (CellList) PFilterMapInt8 ¶
PFilterMapInt8 is similar to FilterMapInt8 except that it executes the method on each member in parallel.
func (CellList) PFilterMapNumCount ¶
func (l CellList) PFilterMapNumCount(fMap func(Cell) numCount, fFilters ...func(Cell) bool) numCountList
PFilterMapNumCount is similar to FilterMapNumCount except that it executes the method on each member in parallel.
func (CellList) PFilterMapPos ¶
PFilterMapPos is similar to FilterMapPos except that it executes the method on each member in parallel.
func (CellList) PMap ¶
PMap is similar to Map except that it executes the function on each member in parallel.
func (CellList) PMapInt ¶
PMapInt is similar to MapInt except that it executes the function on each member in parallel.
func (CellList) PMapInt8 ¶
PMapInt8 is similar to MapInt8 except that it executes the function on each member in parallel.
func (CellList) PMapNumCount ¶
PMapNumCount is similar to MapNumCount except that it executes the function on each member in parallel.
func (CellList) PMapPos ¶
PMapPos is similar to MapPos except that it executes the function on each member in parallel.
func (CellList) Reduce ¶
Reduce is a method on CellList that takes a function of type (Cell, Cell) -> Cell and returns a Cell which is the result of applying the function to all members of the original list starting from the first member
func (CellList) ReduceRight ¶
ReduceRight is a method on CellList that takes a function of type (Cell, Cell) -> Cell and returns a Cell which is the result of applying the function to all members of the original list starting from the last member
type DefaultLogger ¶
type DefaultLogger struct { }
func (DefaultLogger) Eliminated ¶
func (l DefaultLogger) Eliminated(strategy string, cells ...Cell)
func (DefaultLogger) Solved ¶
func (l DefaultLogger) Solved(strategy string, cells ...Cell)
type PosList ¶
type PosList []Pos
PosList is the type for a list that holds members of type Pos
func (PosList) All ¶
All is a method on PosList that returns true if all the members of the list satisfy a function or if the list is empty.
func (PosList) Any ¶
Any is a method on PosList that returns true if at least one member of the list satisfies a function. It returns false if the list is empty.
func (PosList) Drop ¶
Drop is a method on PosList that takes an integer n and returns all but the first n elements of the original list. If the list contains fewer than n elements then an empty list is returned.
func (PosList) DropWhile ¶
DropWhile is a method on PosList that takes a function of type Pos -> bool and returns a list of type PosList which excludes the first members from the original list for which the function returned true
func (PosList) Each ¶
Each is a method on PosList that takes a function of type Pos -> void and applies the function to each member of the list and then returns the original list.
func (PosList) EachI ¶
EachI is a method on PosList that takes a function of type (int, Pos) -> void and applies the function to each member of the list and then returns the original list. The int parameter to the function is the index of the element.
func (PosList) Filter ¶
Filter is a method on PosList that takes a function of type Pos -> bool returns a list of type PosList which contains all members from the original list for which the function returned true
func (PosList) FilterMapCell ¶
FilterMapCell is a method on PosList that applies the filter(s) and map to the list members in a single loop and returns the resulting list.
func (PosList) FilterMapInt ¶
FilterMapInt is a method on PosList that applies the filter(s) and map to the list members in a single loop and returns the resulting list.
func (PosList) FilterMapInt8 ¶
FilterMapInt8 is a method on PosList that applies the filter(s) and map to the list members in a single loop and returns the resulting list.
func (PosList) FilterMapNumCount ¶
func (l PosList) FilterMapNumCount(fMap func(Pos) numCount, fFilters ...func(Pos) bool) numCountList
FilterMapNumCount is a method on PosList that applies the filter(s) and map to the list members in a single loop and returns the resulting list.
func (PosList) Map ¶
Map is a method on PosList that takes a function of type Pos -> Pos and applies it to every member of PosList
func (PosList) MapCell ¶
MapCell is a method on PosList that takes a function of type Pos -> Cell and applies it to every member of PosList
func (PosList) MapInt ¶
MapInt is a method on PosList that takes a function of type Pos -> int and applies it to every member of PosList
func (PosList) MapInt8 ¶
MapInt8 is a method on PosList that takes a function of type Pos -> int8 and applies it to every member of PosList
func (PosList) MapNumCount ¶
MapNumCount is a method on PosList that takes a function of type Pos -> numCount and applies it to every member of PosList
func (PosList) PFilter ¶
PFilter is similar to the Filter method except that the filter is applied to all the elements in parallel. The order of resulting elements cannot be guaranteed.
func (PosList) PFilterMapCell ¶
PFilterMapCell is similar to FilterMapCell except that it executes the method on each member in parallel.
func (PosList) PFilterMapInt ¶
PFilterMapInt is similar to FilterMapInt except that it executes the method on each member in parallel.
func (PosList) PFilterMapInt8 ¶
PFilterMapInt8 is similar to FilterMapInt8 except that it executes the method on each member in parallel.
func (PosList) PFilterMapNumCount ¶
func (l PosList) PFilterMapNumCount(fMap func(Pos) numCount, fFilters ...func(Pos) bool) numCountList
PFilterMapNumCount is similar to FilterMapNumCount except that it executes the method on each member in parallel.
func (PosList) PMap ¶
PMap is similar to Map except that it executes the function on each member in parallel.
func (PosList) PMapCell ¶
PMapCell is similar to MapCell except that it executes the function on each member in parallel.
func (PosList) PMapInt ¶
PMapInt is similar to MapInt except that it executes the function on each member in parallel.
func (PosList) PMapInt8 ¶
PMapInt8 is similar to MapInt8 except that it executes the function on each member in parallel.
func (PosList) PMapNumCount ¶
PMapNumCount is similar to MapNumCount except that it executes the function on each member in parallel.
func (PosList) Reduce ¶
Reduce is a method on PosList that takes a function of type (Pos, Pos) -> Pos and returns a Pos which is the result of applying the function to all members of the original list starting from the first member
func (PosList) ReduceRight ¶
ReduceRight is a method on PosList that takes a function of type (Pos, Pos) -> Pos and returns a Pos which is the result of applying the function to all members of the original list starting from the last member
type Sudoku ¶
type Sudoku struct { Solved CellList Candidates CellList // contains filtered or unexported fields }