package
0.0.0-20230516102707-9aa4175ac4b1
Repository: https://github.com/jamo42/spellcheck_comments.git
Documentation: pkg.go.dev

# Functions

Back returns a pointer to the last element in the slice.
CeilDiv performs ceiling integer division of a / b.
Clamp clamps the value in the given inclusive range.
Contains returns trues if arr contains value.
No description provided by the author
Filter retains all values of arr for which pred returns true.
FixPrintfPadding returns the correct padding amount to pad the given word by the wanted number of cells, handling codepoints with multiple bytes and fullwidth characters.
Map applies f to each value of arr.
Max returns the maximum of two integers.
MaxElem returns the maximum element of an integer slice.
Min returns the minimum of two integers.
PopBack removes the last element from the given slice.
PopFront pops the first value from the given slice.
PopFrontOrDefault pops the first value from the given slice.
Position returns the position of value in arr and if arr contains value.
StableFilter filters the array like Filter but preserves the order of elements.
String2Int creates an integer with the utf-8 representation of the string.
StrLen simply wraps a call to len(s).
Sum returns the sum of the elements in arr.