Documentation
¶
Index ¶
- func MustPop[T any](s *[]T) T
- func MustShift[T any](s *[]T) T
- func NewDay[T any]() *day[T]
- func ParseInt(something string) int
- func Pop[T any](s *[]T) *T
- func ReadAsLines(filename string) (out []string)
- func ReadCSV(filename string) (out []string)
- func ReadCSVInt(filename string) (out []int)
- func ReadLinesIter(filename string) iter.Seq[string]
- func ReadSpaceSeparatedSections(filename string) []string
- func ScanCommas(data []byte, atEOF bool) (advance int, token []byte, err error)
- func Shift[T any](s *[]T) *T
- func Sum[E ~int](slice []E) (out E)
- func SumFunc[T any, E ~int](slice []T, fun func(_ T) E) (out E)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadAsLines ¶
func ReadCSVInt ¶
func ReadLinesIter ¶
this works fine, but didn't use it anywhere
func ScanCommas ¶
copied from ScanLines;
just swapped "\n" with "," naively (ignoring quoted commas)
then checked for newline within the comma check
to handle 7,1\n11,1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.