Module

Data.TwoOrMore

Package
purescript-two-or-more
Repository
i-am-the-slime/purescript-two-or-more

#twoOrMore Source

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

#fromArray Source

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

#pushFront Source

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

#pushBack Source

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

#length Source

length :: forall a. TwoOrMore a -> Int

#head Source

head :: forall a. TwoOrMore a -> a

#neck Source

neck :: forall a. TwoOrMore a -> a

#last Source

last :: forall a. TwoOrMore a -> a

#zip Source

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

#findIndex Source

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

#mapWithIndex Source

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

#index Source

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

#(!!) Source

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