newLISP Fan Club

Forum => newLISP newS => Topic started by: Jeff on July 17, 2008, 08:44:14 AM

Title: XML & Functional modules
Post by: Jeff on July 17, 2008, 08:44:14 AM
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