sleigh

package
v0.0.0-...-223f09d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

sleigh is how Santa gets his toys from here to there (data transformations)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BinaryStringToUint64s

func BinaryStringToUint64s(input []string) []uint64

func BitAbstractionToUint64s

func BitAbstractionToUint64s(input []string, zeroVal, oneVal string) []uint64

func BreakToBlocks

func BreakToBlocks(input []string) [][]string

func BreakToInt64Blocks

func BreakToInt64Blocks(input []string) [][]int64

func CharToBools

func CharToBools(input []string, trueVal, falseVal rune) [][]bool

func CreateMatrix

func CreateMatrix[T any](numRows, numCols int) [][]T

func Reverse

func Reverse[T any](in *[]T)

func ReverseHorizontal

func ReverseHorizontal[T any](in *[][]T)

func ReverseVertical

func ReverseVertical[T any](in *[][]T)

func StandardizeDimensions

func StandardizeDimensions[T any](in [][]T, fill T) [][]T

func ToBools

func ToBools(input []string) [][]bool

func ToInt64s

func ToInt64s(input []string) []int64

func ToRunes

func ToRunes(input []string) [][]rune

func Tokenize

func Tokenize(input []string) [][]string

func TransposeMatrix

func TransposeMatrix[T any](in [][]T) ([][]T, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL