This file contains hidden or 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
<html> | |
<head> | |
<style type="text/css"> | |
#meme_text2 { | |
background-color: transparent; | |
font-size: 40px; | |
font-family: "Impact"; | |
color: white; | |
text-shadow: black 0px 0px 10px; | |
width: 600px; |
This file contains hidden or 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
import Data.Char | |
s = "import Data.Char\ns = \"?\"\nifb a i x = if x == chr i then map chr a else [x]\ni = ((=<<) .) . ifb\nmain = do\n\tputStrLn $ i (map ord (i [92,116] 9 $ i [92,34] 34 $ i [92,110] 10 s)) 63 s" | |
ifb a i x = if x == chr i then map chr a else [x] | |
i = ((=<<) .) . ifb | |
main = do | |
putStrLn $ i (map ord (i [92,116] 9 $ i [92,34] 34 $ i [92,110] 10 s)) 63 s |
This file contains hidden or 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
% This is an attempt at formalazing church style stcl in prolog to get automatic type inference and term generation | |
% Peano natural numbers | |
nat(zero). | |
nat(suc(X)) :- nat(X). | |
% Type | |
% τ := Base | |
% τ -> τ | |
type(base(_)). |