4.41 GTraverseFunc

Callback: GTraverseFunc

A procedure given for it is called as (procedure key value) ⇒ %return. If the function that it is given to has no user data for it, it is also passed data, last.

Specifies the type of function passed to tree:traverse. It is passed the key and value of each node, together with the user-data parameter passed to tree:traverse. If the function returns #t, the traversal is stopped.

key

Passed: a foreign pointer, or #f.

a key of a <GTree> node

value

Passed: a foreign pointer, or #f.

the value corresponding to the key

%return

Returned: a boolean.

#t to stop the traversal

data

Not passed: it is the user data that guile-gi supplied.

user data passed to tree:traverse