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

sxml-match-let and sxml-match-let*

Scheme Syntax: sxml-match-let ((pat expr) ...) expression0 expression ...)
Scheme Syntax: sxml-match-let* ((pat expr) ...) expression0 expression ...)

These forms generalize the let and let* forms of Scheme to allow an XML pattern in the binding position, rather than a simple variable.

For example, the expression below:

(sxml-match-let ([(a ,i ,j) '(a 1 2)])
  (+ i j))

binds the variables i and j to 1 and 2 in the XML value given.


This document was generated on February 3, 2012 using texi2html 5.0.

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