FirstToLast, LastToFirst.
The other direction. LastToFirst ⇆ FirstToLast
Translate an amount or index to one that is used FirstToLast.
at index direction array =
Array.get
(index
|> toFirstToLast direction
{ length = Array.length array }
)
Either
FirstToLastorLastToFirst.