chickadee » latch

latch

Introduction

Allows evaluating expressions just once.

Usage

(require-extension latch)

Requirements

matchable

Documentation

(let-once ((IDENTIFIER EXPR) ...) BODY ...) syntax

Binds IDENTIFIER to the result of evaluating EXPR and evaluates BODY. On any subsequent evaluation of the let-once form, the result of EXPR is re-used and evaluation of EXPR is skipped.

(let*-once ((IDENTIFIER EXPR) ...) BODY ...) syntax

Like let-once, but binds sequentially (just like let*).

Author

felix winkelmann

License

This code is placed into the public domain.

Version History

0.1
initial release

Contents »