This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- The meta-circular interpreter from section 5 of Reynolds's Definitional | |
-- Interpreters for Higher Order Programming Languages | |
-- (http://www.cs.uml.edu/~giam/91.531/Textbooks/definterp.pdf) | |
data EXP | |
= CONST Const | |
| VAR Var | |
| APPL Appl | |
| LAMBDA Lambda | |
| COND Cond |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE DeriveFoldable #-} | |
{-# LANGUAGE DeriveFunctor #-} | |
{-# LANGUAGE DeriveTraversable #-} | |
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE LambdaCase #-} | |
module Propositional where | |
import Prelude hiding (False, True) | |
import qualified Prelude |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Priority Queues | |
═══════════════ | |
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | |
INSERT DEL-MIN MIN DEC-KEY DELETE MERGE | |
binary log n log n 1 log n log n n | |
binomial 1 log n 1 log n log n log n | |
Fibonacci 1 log n† 1 1† log n† log n | |
Pairing 1† log n† 1† 1† log n† 1† | |
Brodal-Okasaki 1 log n 1 1 log n 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
flags: {} | |
packages: | |
- location: '.' | |
- location: | |
git: https://github.com/ryantrinkle/reflex.git | |
commit: 784f9f79396ae713a03fc4d81f8a67b75d6ade1c # need a few package bumps not present in hackage release yet | |
extra-dep: true | |
- location: | |
git: https://github.com/ryantrinkle/reflex-dom.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+--------------------+ | |
| Do you understand | | |
| fixed points? <----+ | |
+---------+----------+ | | |
| | | |
| NO | | |
| | | |
+---------v----------+ | | |
| Read a tutorial +----+ | |
| about fixed points | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE OverloadedStrings #-} | |
module CommandParser where | |
import Data.Attoparsec.ByteString.Char8 | |
import Data.Attoparsec.Combinator | |
import Control.Applicative | |
import Data.ByteString | |
data Command = Retrieve | Delete | New deriving Show |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_______________ | |
< PLAY [gitlab] > | |
--------------- | |
\ ^__^ | |
\ (oo)\_______ | |
(__)\ )\/\ | |
||----w | | |
|| || | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foo = bar | |
. bizz | |
. bazz | |
foo = bar | |
<> bizz | |
<> bazz | |
expr = term |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
span.messageRow { | |
} | |
span.messageRow span.date { | |
} | |
span.messageRow span.message { | |
} | |
span.message span.authorWrap { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[1,2,3] [] [] | |
[2,3] [1] [] | |
[3] [1] [2] | |
[3] [] [1,2] | |
[] [3] [1,2] | |
[1] [3] [2] | |
[1] [2,3] [] | |
[] [1,2,3] [] |