Skip to content

Instantly share code, notes, and snippets.

@fvilante
Created April 28, 2020 05:56
Show Gist options
  • Save fvilante/ee18b9983be5980ee3b9d515602d4936 to your computer and use it in GitHub Desktop.
Save fvilante/ee18b9983be5980ee3b9d515602d4936 to your computer and use it in GitHub Desktop.
AST Exploration
// The Essence of A Turing Machine -
// AST explorer studies
import { hello } from './juca'
hello()
const arr = [2,hello,3]
type Reader<A> = {
readonly map: (_:A) => Reader<A>
readonly tap: (_: A) => Reader<A>
}
const f = <D>(_:D) => _
declare const Reader: <A>() => Reader<A>
const a = Reader<number>()
.map(2)
.tap(3)
f(2)
const b = 2 === 2 ? true : false
let c = 0
if(2===2) { c = 1 }
while(1===1 || 2===2) {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment