1module Snapshot.EffectRefs02 where
5import Data.Tuple (Tuple(..))
6import Effect (Effect, whileE)
8import Effect.Ref as Ref
10test1 :: Int -> Effect Int
13 continue <- Ref.new true
14 whileE (Ref.read continue) do
18 Ref.write (n + 1) count
20 Ref.write false continue
23test2 :: Effect (Int -> Effect Unit)
26 pure \n -> void $ Ref.modify (_ + n) count
28test3 :: Effect (Tuple (Ref Int) (Int -> Effect Unit))
31 pure $ Tuple count \n -> void $ Ref.modify (_ + n) count
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