Module
Data.FingerTree.Digit
- Package
- purescript-sequences
- Repository
- hdgarrood/purescript-sequences
#Digit Source
newtype Digit a
A Digit is just an array which has between one and four elements (inclusive). If a Digit has two or three elements, it is described as 'safe'; otherwise, it is described as 'dangerous'.
Instances
#mkDigitMay Source
mkDigitMay :: forall a. Array a -> Maybe (Digit a)
Like mkDigit, except this returns Nothing on invalid input.
#digitLength Source
digitLength :: forall a. Digit a -> Int