file: 10-C-lists.muf package: muf status: alpha
The MUF member? function searches a list for a
given value. It returns nil if the value is found,
else the first cons cell containing the given value:
Stack: 'd' [ 'a' 'b' 'c' ]l member? Stack: nil pop 'b' [ 'a' 'b' 'c' ]l member? car Stack: 'b'
It is currently defined as:
: member? { $ $ -> $ } -> list -> val
list listfor v c do{ v val = if c return fi }
nil
;
Go to the first, previous, next, last section, table of contents.