1-- @inline export testArrayIndex never
2module Snapshot.InlineArrayIndex where
6import Assert (assertEqual)
7import Data.Array as Array
8import Data.Maybe (Maybe(..))
11testArrayIndex :: forall a. Array a -> Int -> Maybe a
12testArrayIndex arr ix = Array.index arr ix
16 let array = [ 1, 2, 3 ]
17 assertEqual "index -1"
19 , actual: testArrayIndex array (-1)
23 , actual: testArrayIndex array 0
27 , actual: testArrayIndex array 1
31 , actual: testArrayIndex array 2
35 , actual: testArrayIndex array 3
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list