Overview Clamps Packages CM Dictionary Clamps Dictionary Fomus
Next: rotate , Previous: reverse-all , Up: R , Home: Overview

Clamps Dictionary

rfind

Function

(rfind item tree &key (test #'eql))

Find item by traversing tree recursively until test called on item and a tree element returns non-nil. Return item or nil if item is not found.

Arguments

item Any Common Lisp Object.
tree A list possibly nested.
:test Function to test for equality between item and a tree element.

Example

(rfind 'd '(a (b c (a d c) ((g d (e)) h f)))) ; => d 

Author: Orm Finnendahl

Created: 2025-02-18 Di 12:58

Validate