Go to the first, previous, next, last section, table of contents.


rassoc

Function: rassoc { val list -> keyval }
file: 10-C-lists.muf
package: muf
status: alpha

This function is exactly like assoc except that it searches for a cons cell with a matching cdr slot, instead of a matching car slot:

Stack:
[ 'k' 'v' cons   'K' 'V' cons ]l   --> list
Stack:
'v' list rassoc car
Stack: 'k'
pop 'V' list rassoc car
Stack: 'K'

Note that rassoc does not search the list in reverse!

See section assoc.


Go to the first, previous, next, last section, table of contents.