Next: Languages, Up: API Documentation [Contents]
Blocks can be created using the make-block*
function.
(define ruby-hello-world (make-block* #:code "print 42" #:language ruby))
A define-block
macro is provided as a shorthand.
(define-block ruby-hello-world #:code "print 42" #:language ruby)
Blocks are immutable. Functions which take and return a block are returning new blocks. Blocks can not be modified after they are created.