orders

package
v0.0.0-...-7d62c13 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MostCopies

func MostCopies(in []byte) ([]byte, error)

MostCopies takes and ASCII line of a comma-separated list of toys to make and returns the toy with the most copies to make.

Ex:

line:= []byte("10x toy car,15x dog on a string,4x inflatable motorcycle\n"
MostCopies(line) => []byte("15x dog on a string\n")

Types

This section is empty.

Jump to

Keyboard shortcuts

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