std-rassoc


Synopsis

(std-rassoc <key> <alst>)

Description

"reverse assoc".

STD-RASSOC returns the dotted list pair in an association list as the builtin AutoLISP function ASSOC but the key is searched in all cdr's of the dotted pairs and not the car's. The first found pair is returned.

Examples

(std-rassoc "LINE" '((0 . "LINE")(8 . "0")(10 0.0 0.0 0.0))
            => (0 . "LINE")

Arguments

key: any lisp expression.

alst: any association list (list of dotted pairs)

Return Value

A dotted list pair or nil.

Side Effects

None.

Module

(std-require 'STDLIST)

Defined in STDLIST

#- SMALL