Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Lambda fails

Name: Anonymous 2009-04-03 18:15

(define a
  (lambda (x)
    (not (x x))))
(a a)


SHIT BRICKS

Name: Anonymous 2009-04-04 18:01

Lambda fails
obviously:
Prelude> take 20 $ (\x -> map x [1..]) sqrt
[1.0,1.4142135623730951,1.7320508075688772,2.0,2.23606797749979,2.449489742783178,2.6457513110645907,2.8284271247461903,3.0,3.1622776601683795,3.3166247903554,3.4641016151377544,3.605551275463989,3.7416573867739413,3.872983346207417,4.0,4.123105625617661,4.242640687119285,4.358898943540674,4.47213595499958]
(0.10 secs, 3348836 bytes)
Prelude> take 20 $ (flip map [1..]) sqrt
[1.0,1.4142135623730951,1.7320508075688772,2.0,2.23606797749979,2.449489742783178,2.6457513110645907,2.8284271247461903,3.0,3.1622776601683795,3.3166247903554,3.4641016151377544,3.605551275463989,3.7416573867739413,3.872983346207417,4.0,4.123105625617661,4.242640687119285,4.358898943540674,4.47213595499958]
(0.03 secs, 1046272 bytes)

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List