manpagez: man pages & more
info bigloo
Home | html | info | man
[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.1.3 Definitions

Global bindings are introduced by the define form:

syntax: define variable expression
syntax: define (variable arg …) body
(define add3
  (lambda (x) (+ x 3)))
(add3 3)                               ⇒ 6
(define first car)
(first '(1 2))                         ⇒ 1

See section r5rs.info, for more details. The Bigloo module language (See Module declaration) enables exports and imports of global definitions.


This document was generated on March 31, 2014 using texi2html 5.0.

© manpagez.com 2000-2025
Individual documents may contain additional copyright information.