Skip to content

Instantly share code, notes, and snippets.

@dkoontz
dkoontz / Main.purs
Created June 1, 2016 00:03
PureScript external signals
createSignal :: forall a. a -> Signal a
createSignal = constant
data AppMessage = Init | ...
main :: (Signal Message) -> Eff (CoreEffects YourEffects) (App State Message)
main signal = do
app <- start
{ initialState: init
, update: update
@e000
e000 / donotuse.py
Created June 13, 2011 23:30
How to NEVER use lambdas.
##########################################################
# How to NEVER use Lambdas. An inneficient and yet educa-#
# tonal guide to the proper misuse of the lambda constru-#
# ct in Python 2.x. [DO NOT USE ANY OF THIS EVER] #
# by: e000 (13/6/11) #
##########################################################
## Part 1. Basic LAMBDA Introduction ##
# Well, it's worth diving straight into what lambdas are.
# Lambdas are pretty much anonymous "one line" functions