parameters: (self)
return_statement: return cast(AbstractSet[Tuple[str, StatisticsValue]], ret)
docstring: Return the items of the map.
docstring_summary: Return the items of the map.
docstring_tokens: Return the items of the map .
function: def items(self) -> AbstractSet[Tuple[str, StatisticsValue]]:
          '''
          Return the items of the map.
          '''
          ret = []
          for i in range(len(self)):
              name = _c_call('char*', _lib.clingo_statistics_map_subkey_name, self._rep, self._key, i)
              key = _c_call('uint64_t', _lib.clingo_statistics_map_at, self._rep, self._key, name)
              ret.append((_to_str(name), _mutable_statistics_get(self._rep, key)))
          # Note: to shut up the type checker; this should work fine in practice
          return cast(AbstractSet[Tuple[str, StatisticsValue]], ret)
function_tokens: def items ( self ) -> AbstractSet [ Tuple [ str , StatisticsValue ] ] : ret = [ ] for i in range ( len ( self ) ) : name = _c_call ( 'char*' , _lib . clingo_statistics_map_subkey_name , self . _rep , self . _key , i ) key = _c_call ( 'uint64_t' , _lib . clingo_statistics_map_at , self . _rep , self . _key , name ) ret . append ( ( _to_str ( name ) , _mutable_statistics_get ( self . _rep , key ) ) ) # Note: to shut up the type checker; this should work fine in practice return cast ( AbstractSet [ Tuple [ str , StatisticsValue ] ] , ret )