A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/fredokun/lisp-lazy-seq below:

fredokun/lisp-lazy-seq: Lazy sequences in Common Lisp

Lazy sequences in Common Lisp

These package implements the notion of a lazy sequence as found in the Clojure programming language.

Note that everything has been implemented from scratch, without any claim of compatibility.

The package is implemented as an ASDF system named lazyseq

It is available on ultralisp :

* (ql:quickload "lazyseq")

The main package is :lazyseq

For example:

* (in-package :lazyseq)
#<PACKAGE "LAZYSEQ">

* (defun nats (n)
    (lazy-seq (cons n (nats (1+ n)))))
NATS

* (head (tail (tail (nats 1))))
3

* (take 5 (nats 1))
(1 2 3 4 5)

More examples are available in the files:

Copyright (C) 2016- Frederic Peschanski under the MIT License (cf. LICENSE file)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4