One million lambda expressions

For the Compleat Fan
Locked

ale870
Posts: 297
Joined: Mon Nov 26, 2007 8:01 pm
Location: Italy

Re: One million lambda expressions

Post by ale870 »

OMG!!!!!!!!!

Are they dynamically created?! Automatically generated?!
Simply amazing and crazy!
--

Kazimir Majorinc
Posts: 388
Joined: Thu May 08, 2008 1:24 am
Location: Croatia
Contact:

Re: One million lambda expressions

Post by Kazimir Majorinc »

Thanx, yes, these are generated. I have lot of functions needed for generation and reduction of lambda-expressions in my library. Here is the simple program for demonstration.

Code: Select all

(setf [print.supressed] true [println.supressed] true)
(load "http://instprog.com/Instprog.default-library.lsp")
(setf [print.supressed] nil [println.supressed] nil)

(for(i 1 1000000000 12345679)
  (setf lexpr (lam i "xyz"))
  (println "\n" i ". " lexpr "\n")
  (reduce^ lexpr 33 true)
  (println)
  (---))
  
(exit)

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Re: One million lambda expressions

Post by newdep »

Fantastic!!! .. So Simply and so effective...

Love your Blog btw..great readings..!
-- (define? (Cornflakes))

Locked