std-rposition


Synopsis

(std-rposition <x> <lst>)

Description

"reverse position". STD-RPOSITION returns the last found position (index) of x in lst. It returns either an integer number or nil if not found. If x is the car of lst, then 0 is returned.

Examples

(std-rposition 2 '(2 1 2 3))   => 2
(std-rposition 'a '(0 1 2 3))  => nil

Arguments

x: any lisp expression.

lst: any proper list.

Return Value

An integer number or nil.

Side Effects

None.

Module

(std-require 'STDLIST)

Defined in STDLIST

#- SMALL