News for hackers. Stuff that matters.
Re:What is a functional programming language? by ambulatorybird on Thursday July 23, 2009 @05:41PM (#720430)
You can also do sequencing (assuming applicative order) and conditionals:

  'a; b' ==> (fn x -> b) a

  true  = fn x -> fn y -> x
  false = fn x -> fn y -> y
  if    = fn p -> fn -> c -> fn a -> p c a

There are no comments on this comment yet.