XML & Functional modules

Started by Jeff, July 17, 2008, 08:44:14 AM

Previous topic - Next topic

Jeff

For those who use my XML module I have completely rewritten it to serialize *much* more accurately.



I also added a 'match-with' function to my functional module that allows matching in the style of erlang and ml, additionally using guards:


(match-with '(1 2 3)
  (((a ? integer?) (b ? integer?) (c ? integer? (fn (i) (< i 3))))
   (+ a b c)) ; won't get reached because of guard
  (((a ? integer?) (b ? integer?) (c ? integer? (fn (i) (< i 4))))
   (* a b c))) ; this matches because all guards return true
Jeff

=====

Old programmers don\'t die. They just parse on...



http://artfulcode.net\">Artful code