Core Help Root: Objects: Data Lib


.unparse_indent(value)
Accepts a valid ColdC data item as an argument, and returns a textual representation similar to the result of a toliteral() call, except in a more driver-friendly manner.
.unparse_indent_html(value)
Accepts a valid ColdC data item as an argument and calls .unparse_indent() with it. It then post-processes the data converting it to HTML. Conversions performed are converting various characters to the valid HTML entity and linking objects the web view of them via /bin/display.
.data_map(val, method, options[, @args])
Maps a method over elements of any data structure. You can use it to map a function inside a list on a frob, for instance. Options decide which data types and frob classes will be affected and which will be left alone. Options is a dict of [key, value] pairs.
['object, something]If its an object, it calls the method from that object, otherwise it calls it from data value.
['list,1]Map into lists.
['dictionary,1]Map into dicts.
['frob,1]Map into frobs. You must use the option 'class to specify the class to affect.
['all,1]Affect all types.
[type, 1]Affect the types not mentioned above.
.is_valid_type(type)
Given a symbol, returns true if it is a valid ColdC type, false if not.


Colors | Trie | List Library | has_text | mutex | Heap | Weather System | Math Library | Integer | Data Lib | Object Lib | Help Node | Code Lib | Generic Map | Scrabble | World Time | Time | Robot | Native Function Reference | Complex Number Library | Bytecode Docs | motd | Mail List | Float | Collective | libraries | social_ui


the Cold Dark