Gauche:Stream

Gauche:Stream


ストリーム(Stream)とは?

SRFI 40: A Library of Streams

GaucheRefj:util.stream GaucheRefe:util.stream

以下の手続きは Alejandro Forero Cuervo が Chicken Schemeのために書いた ライブラリから取ってきたものです。これらの手続きの名前は srfi-1 (GaucheRefj:srfi-1)の命名規則にならったものです。

The following procedures are taken from the library written by Alejandro Forero Cuervo for Chicken Scheme. They follow the naming conventions of srfi-1 (GaucheRefe:srfi-1).

The stream-ext egg provides many convenient extensions to work with srfi:40 streams. - The Chicken Scheme wiki

This egg is made by Alejandro Forero Cuervo <azul@freaks-unidos.net>.

;; $Id: stream-ext.scm 5600 2006-05-19 20:01:00Z azul $
;;
;; This file is in the public domain and may be reproduced or copied without
;; permission from its author.  Citation of the source is appreciated.
;;
;; Alejandro Forero Cuervo <azul@freaks-unidos.net>
;;
;; This file implements an egg for Chicken Scheme that contains useful
;; extensions to work with streams as defined in srfi-40.
;;
;; Documentation is available in HTML format.
;;
;; Newer versions might be available at:
;;
;;    http://wiki.call-cc.org/stream-ext

遅延シーケンスとストリーム - QA@IT

Gaucheでは無限列の実装として遅延シーケンス(Lazy sequences , gauche.lazy)とストリーム(Stream library , util.stream)があります。この2つをどのように使い分けていけばいいのでしょうか?

2つの実装の性能の違いや利用上の注意点を知りたく思い質問させていただいきました。 つまり、遅延シーケンスに適した状況、ストリームに適した状況とはなにかということです。



Tag: util.stream


Last modified : 2013/05/07 10:44:03 UTC