Re: Overloading the tilde operator?

2007-02-08 Thread Markus Triska
[EMAIL PROTECTED] writes: > Also some flavours of Prolog, as descrived in the classic book by op/3 is part of the Prolog ISO standard: http://pauillac.inria.fr/~deransar/prolog/bips.html#operators so every compliant implementation has it. -- http://mail.python.org/mailman/listinfo/python-list

Re: merits of Lisp vs Python

2006-12-12 Thread Markus Triska
f)) (fib 200)", V))). ==> 20,509 inferences, 0.02 CPU in 0.01 seconds (239% CPU, 1025450 Lips) V = [fib, 280571172992510140037611932413038677189525] ; Showing "eval" and "map": ?- run("(defun map (f xs) (if (equal xs '()) '() (cons (eval (list f (car xs))) (map f (cdr xs) (defun plus1 (x) (+ 1 x)) (map 'plus1 '(1 2 3))", Vs). ==> Vs = [map, plus1, [2, 3, 4]] ; Prolog's analogon to Lisp's macros is term_expansion/2 by the way. All the best! Markus Triska -- http://mail.python.org/mailman/listinfo/python-list