XML & Functional modules
Posted: Thu Jul 17, 2008 3:44 pm
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:
I also added a 'match-with' function to my functional module that allows matching in the style of erlang and ml, additionally using guards:
Code: Select all
(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