Macro
Define object of the given type as a stream whose implementation of stream-next is defined by args and body. This macro adds a type-specific method for stream-next and derives type from stream-type.
; clojure/contrib/stream_utils.clj:72 (defmacro defstream [type-tag args & body] `(do (derive ~type-tag stream-type) (defmethod stream-next ~type-tag ~args ~@body)))
Copyright (c) Rich Hickey. All rights reserved.
The use and distribution terms for this software are covered by the Eclipse Public License 1.0, which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.