Documentation
¶
Index ¶
- func DirectionsSeq(options ...DirectionOption) iter.Seq[math.Point]
- func Pairs[S ~[]T, T any](in S, num int) []S
- func PairsSeq[S ~[]T, T any](in S, num int) iter.Seq[S]
- func PairsSeq2[S ~[]T, T any](in S, num int) iter.Seq2[int, S]
- func Reverse[S ~[]T, T any](in S) S
- func ReverseSeq[S ~[]T, T any](in S) iter.Seq[T]
- func ReverseSeq2[S ~[]T, T any](in S) iter.Seq2[int, T]
- func Ring[S ~[]T, T any](in S) iter.Seq[T]
- func Ring2[S ~[]T, T any](in S) iter.Seq2[int, T]
- func RingReverse[S ~[]T, T any](in S) iter.Seq[T]
- func RingReverse2[S ~[]T, T any](in S) iter.Seq2[int, T]
- func SkipOne[S ~[]T, T any](in S) []S
- func SkipOneSeq[S ~[]T, T any](in S) iter.Seq[S]
- func SkipOneSeq2[S ~[]T, T any](in S) iter.Seq2[int, S]
- type DirectionOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DirectionsSeq ¶
func DirectionsSeq(options ...DirectionOption) iter.Seq[math.Point]
func ReverseSeq ¶
func RingReverse ¶
func SkipOneSeq ¶
Types ¶
type DirectionOption ¶
type DirectionOption func(options *directionOptions)
func WithOrthogonalOnly ¶
func WithOrthogonalOnly() DirectionOption
func WithReverse ¶
func WithReverse() DirectionOption
Click to show internal directories.
Click to hide internal directories.