1module Snapshot.STArray05 (test) where
5import Control.Monad.ST (ST)
6import Data.Array.ST (STArray)
7import Data.Array.ST as STArray
9f :: forall h. (STArray h Int -> ST h Int) -> ST h (STArray h Int)
15test :: Boolean -> Array Int
16test x = STArray.run (f (if x then \a -> STArray.push 1 a else \a -> STArray.unshift 2 a))
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