lue-bird/elm-linear-direction/5.0.0

NOTE: the latest version is 11.2.0

Linear

Up or Down a structure.

= Up
| Down

Either Up or Down.

alter

index

= ExpectedIndexForLength Int

Locating an index can fail for

  • negative numbers
  • numbers >= the structure's length