package bytes

import "github.com/IBM/fp-go/bytes"

Index

Variables

var (
	// monoid for byte arrays
	Monoid = A.Monoid[byte]()

	// ConcatAll concatenates all bytes
	ConcatAll = A.ArrayConcatAll[byte]

	// Ord implements the default ordering on bytes
	Ord = O.MakeOrd(bytes.Compare, bytes.Equal)
)

Functions

func Empty

func Empty() []byte

func Size

func Size(as []byte) int

func ToString

func ToString(a []byte) string

Source Files

bytes.go monoid.go

Version
v1.0.151 (latest)
Published
Nov 23, 2024
Platform
linux/amd64
Imports
3 packages
Last checked
5 months ago

Tools for package owners.