Debian Codegraph @

ru/refpages/elements/example/example.1.gen

raw
1 <example><title>A DSSSL Function</title>
2 <programlisting>
3 (define (node-list-filter-by-gi nodelist gilist)
4 ;; Returns the node-list that contains every element of the original
5 ;; nodelist whose gi is in gilist
6 (let loop ((result (empty-node-list)) (nl nodelist))
7 (if (node-list-empty? nl)
8 result
9 (if (member (gi (node-list-first nl)) gilist)
10 (loop (node-list result (node-list-first nl))
11 (node-list-rest nl))
12 (loop result (node-list-rest nl))))))
13 </programlisting>
14 </example>