Files
tricu/lib/bytes.tri
James Eversole fdebb6c13d Tricu 2.0.0
Sorry for squashing all of this but 🤷
2026-05-25 12:44:24 -05:00

18 lines
282 B
Plaintext

!import "base" !Local
!import "list" !Local
bytesNil? = emptyList?
bytesHead =
matchList nothing (h _ : just h)
bytesTail =
matchList nothing (_ r : just r)
bytesLength = length
bytesAppend = append
bytesTake = take
bytesDrop = drop
bytesSplitAt = splitAt
bytesEq? = equal?