From: Chris Hanson Date: Fri, 24 Jul 1992 22:19:35 +0000 (+0000) Subject: Implement STREAM-FIRST and STREAM-REST as aliases for STREAM-CAR and X-Git-Tag: 20090517-FFI~9201 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=871f5b5db7f4f3d2a334afbb30489cb6c2f465bf;p=mit-scheme.git Implement STREAM-FIRST and STREAM-REST as aliases for STREAM-CAR and STREAM-CDR, respectively. --- diff --git a/v7/src/runtime/runtime.pkg b/v7/src/runtime/runtime.pkg index 98849eef7..5bae834cd 100644 --- a/v7/src/runtime/runtime.pkg +++ b/v7/src/runtime/runtime.pkg @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/runtime.pkg,v 14.156 1992/07/10 22:10:33 cph Exp $ +$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/runtime.pkg,v 14.157 1992/07/24 22:19:35 cph Exp $ Copyright (c) 1988-92 Massachusetts Institute of Technology @@ -2204,12 +2204,14 @@ MIT in each case. |# stream->list stream-car stream-cdr + stream-first stream-head stream-length stream-map stream-null? stream-pair? stream-ref + stream-rest stream-tail tail the-empty-stream) diff --git a/v7/src/runtime/stream.scm b/v7/src/runtime/stream.scm index a807799e1..947133784 100644 --- a/v7/src/runtime/stream.scm +++ b/v7/src/runtime/stream.scm @@ -1,8 +1,8 @@ #| -*-Scheme-*- -$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/stream.scm,v 14.6 1989/10/26 06:47:07 cph Rel $ +$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/stream.scm,v 14.7 1992/07/24 22:19:28 cph Exp $ -Copyright (c) 1988, 1989 Massachusetts Institute of Technology +Copyright (c) 1988-92 Massachusetts Institute of Technology This material was developed by the Scheme project at the Massachusetts Institute of Technology, Department of Electrical Engineering and @@ -50,6 +50,9 @@ MIT in each case. |# (define-integrable (stream-cdr stream) (force (cdr stream))) +(define-integrable stream-first stream-car) +(define-integrable stream-rest stream-cdr) + (define (stream . list) (list->stream list)) diff --git a/v8/src/runtime/runtime.pkg b/v8/src/runtime/runtime.pkg index d2e6e1844..c366aaa3e 100644 --- a/v8/src/runtime/runtime.pkg +++ b/v8/src/runtime/runtime.pkg @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/runtime.pkg,v 14.156 1992/07/10 22:10:33 cph Exp $ +$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/runtime.pkg,v 14.157 1992/07/24 22:19:35 cph Exp $ Copyright (c) 1988-92 Massachusetts Institute of Technology @@ -2204,12 +2204,14 @@ MIT in each case. |# stream->list stream-car stream-cdr + stream-first stream-head stream-length stream-map stream-null? stream-pair? stream-ref + stream-rest stream-tail tail the-empty-stream)