Module

Data.TwoOrMore

#TwoOrMore

newtype TwoOrMore a

#twoOrMore

twoOrMore :: forall a. a -> a -> Array a -> TwoOrMore a

#fromArray

fromArray :: forall a. Array a -> Maybe (TwoOrMore a)

#pushFront

pushFront :: forall a. a -> TwoOrMore a -> TwoOrMore a

#pushBack

pushBack :: forall a. a -> TwoOrMore a -> TwoOrMore a

#length

length :: forall a. TwoOrMore a -> Int

#head

head :: forall a. TwoOrMore a -> a

#neck

neck :: forall a. TwoOrMore a -> a

#last

last :: forall a. TwoOrMore a -> a

#zip

zip :: forall a b. TwoOrMore a -> TwoOrMore b -> TwoOrMore (a /\ b)

#findIndex

findIndex :: forall a. (a -> Boolean) -> TwoOrMore a -> Maybe Int

#mapWithIndex

mapWithIndex :: forall a b. (Int -> a -> b) -> TwoOrMore a -> TwoOrMore b

#index

index :: forall a. TwoOrMore a -> Int -> Maybe a

#(!!)

Operator alias for Data.TwoOrMore.index (left-associative / precedence 8)

Modules