i really want to learn symta, but the "tutorial" stolen from arc's tutorial is a piece of shit.
plz explain it from the beginning in a way that can be understood without previous knowledge of lisp. thank you!
Name:
Anonymous2012-12-22 21:59
i'll start:
numbers evaluate to themselves:
symta> 100
100
Name:
Anonymous2012-12-22 22:02
Consider this a petition to Ahmed to get his shit together and write some actual documentation.
Name:
Anonymous2012-12-22 23:27
we conjure the spirits of the computer with our spells
Name:
Anonymous2012-12-23 2:04
Just learn Lisp and then you'll have a good foundation.
instance (Num a, Eq a) => Num (x -> a) where
fromInteger = const . fromInteger
f + g = liftM2 (+) f g
f * g = liftM2 (*) f g
f - g = liftM2 (-) f g
negate = (negate .)
abs = (abs .)
signum = (signum .)
instance (Eq a, Fractional a) => Fractional (x -> a) where
f / g = liftM2 (/) f g
recip = (recip .)
fromRational = const . fromRational