Function ModelMap.pick

Returns a single value from the mapping, based on the return value of a delegate.

Prototype

TValue pick(
  bool delegate(TValue) f,
  TValue def = null
);

Parameters

NameDescription
f a delegate which returns true if the value passed in matches.
def default value to return if nothing matches.