Code: Select all
: (bind (unify '(Name City Age) '("john" "new york" 22)))
22
: Name
john
: City
new york
: Age
22
Code: Select all
: (bind (unify '(Name City Age) '("john" "new york" 22)))
22
: Name
john
: City
new york
: Age
22
vetelko wrote:Thank you for replies guys. I also started using curl, but IMHO whole world has started using https protocol so soon or later get-url against public internet will be useless.
Code: Select all
(26-) (define factorial
0 -> 1
X -> (* X (factorial (- X 1))))
factorial
(27-) (factorial 6)
720
Code: Select all
(type x) => "list"
(type n) => "integer"
etc...
Code: Select all
(collide-with "asteroid" "asteroid") =>
("POFF" spaceship-spaceship "asteroid" "asteroid")
Code: Select all
ERR: list expected in function map : nil
Code: Select all
>>> a = range(10)
>>> b = range(11,20)
>>> [[x, y] for x in b for y in a]
Code: Select all
[[11, 0], [11, 1], [11, 2], [11, 3], ......