lg_misc

package
v0.0.1-alpha Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs32

func Abs32(x int32) int32

func Asn1

func Asn1()

func Curiosity

func Curiosity()

instead of printing this function should return some value that allow tests bus as the the tuple involve 3 diffrent types maybe we need a new type

func Direct

func Direct(x []int32, acc []int32) []int32

Recursively traverse a slice and mount it in direct order by removing the first element of the input slice and append it to a accumulator slice (starts empty)

func InsertionSort

func InsertionSort(a []int32) []int32

func Operator

func Operator(x int32) int32

Apply the function recursively as an operator between list elements

func Operator2

func Operator2(x []int32) int32

func PopulateInt32Slice

func PopulateInt32Slice(n int32) []int32

func Reverse

func Reverse(x []int32, acc []int32) []int32

Reverse a slice recursively putting the last element of the input slice and append it to a accumulator slice (starts empty)

func SelectionSort

func SelectionSort(a []int32) []int32

Types

This section is empty.

Jump to

Keyboard shortcuts

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