1module Snapshot.STArray03 where
5import Control.Monad.ST as ST
6import Data.Array.ST as STArray
8test1 :: forall a b. (a -> b) -> Array a -> Array b
9test1 f as = STArray.run do
12 void $ STArray.push (f a) bs
15test2 :: forall a b. (a -> Array b) -> Array a -> Array b
16test2 f as = STArray.run do
18 ST.foreach as \a -> do
20 ST.foreach as' (void <<< flip STArray.push bs)
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