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.


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