Added data definition and template for ListOfPoint

master
Pablo Virgo 2016-05-04 22:52:43 -04:00
parent d92dbddb64
commit 2148f868a6
1 changed files with 14 additions and 0 deletions

View File

@ -79,6 +79,20 @@
(point-y p) ; y coordinate
(point-z p))) ; z coordinate
;; ListOfPoint is one of
;; - empty
;; - (cons Point ListOfPoint)
(define LOP-0 empty)
(define LOP-1 (cons (list 0 0 0) (cons (list 500 13 105) empty)))
#;
(define (fn-for-lop lop)
(cond [(empty? lop) (...)]
[else
(... (fn-for-point (first lop))
(fn-for-lop (rest lop)))]))
;; # Minetest-Block is (minetest-block pos data)
;; Interpretation: This duplicates a single block entry from a Minetest