1module Syntax.Case (benchmark) where
3import Benchmark exposing (Benchmark, test, suite)
7benchmark : Benchmark.Benchmark
9 suite "case expressions"
10 [ suite "simple explicit patterns"
11 [ test "Maybe.withDefault 0 (Just 42)" (withDefault 0 (Just 42))
12 , test "Maybe.withDefault 0 Nothing" (withDefault 0 Nothing)
13 , test "isBlack Diamond" (isBlack Diamond)
14 , test "evaluate basicBoolean" (\_ -> evaluate basicBoolean)
15 , test "evaluate fancyBoolean" (\_ -> evaluate fancyBoolean)
20-- 1 Level Deep Patterns
22withDefault default maybe _ =
31type Suit = Diamond | Heart | Spade | Club
62 Or (Not Tru) (Or Fls (And Tru Tru))
74 evaluate a && evaluate b
77 evaluate a || evaluate b
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