4.9.5. Verschachtelte Pattern

Patterns lassen sich wie Prozesse verschachteln und ermöglichen dadurch die Realisation sehr komplexer Datenströme.

;;; Verschachteltes Pattern

(next
 (new cycle :of (list (new cycle :of '(a b c d e)
                           :for (new cycle :of '(1 2 3 4 3 2)))
                      (new cycle :of '(1 2 3 4)
                           :for (new cycle of '(4 3 2 1)))))
 40)

;; -> (a
;;     1 2 3 4
;;     b c
;;     1 2 3
;;     d e a
;;     4 1
;;     b c d e
;;     2
;;     a b c
;;     3 4 1 2
;;     d e
;;     3 4 1
;;     a
;;     2 3
;;     b c
;;     4
;;     d e)

results matching ""

    No results matching ""