YCPBuiltinMap Class Reference

#include <YCPBuiltinMap.h>

List of all members.

Public Member Functions

 YCPBuiltinMap ()
 Select a map element (deprecated, use MAP[KEY]:DEFAULT).


Constructor & Destructor Documentation

YCPBuiltinMap::YCPBuiltinMap (  ) 

Select a map element (deprecated, use MAP[KEY]:DEFAULT).

lookup

Parameters:
map MAP
any KEY
any DEFAULT
Returns:
any
Gets the KEY's value of a map. Returns DEFAULT if the key does not exist. Returns nil if the found entry has a different type than the default value. Functionality replaced with syntax: map m = $["a":1, "b":2]; m["a"]:100 -> 1; m["c"]:100 -> 100;

lookup ($["a":42], "b", 0) -> 0

References DECL_DEPRECATED, DECL_FLEX, DECL_LOOP, DECL_NIL, DECL_SYMBOL, ETC, ETCf, m_addmap(), m_changemap(), m_filter(), m_foreach(), m_haskey(), m_isempty(), m_maplist(), m_mapmap(), m_remove(), m_size(), m_tomap(), m_unionmap(), and StaticDeclaration::registerDeclarations().


The documentation for this class was generated from the following files:

Generated on a sunny day for yast2-core by doxygen 1.5.9