Documentation
Funk2 is not yet completely documented. Please see the examples on the lower left sidebar of this page to get an idea of how Funk2 is used. Here, we have used Funk2's introspective functionality in order to print all object types and how those objects can be used. There are three primary ways of interactive with objects once they have been created: get, set, and execute.
[globalize a `[44 20 51 165]]
[get a car]
[get a cdr]
[set a car 'a string']
[have a sort &>]
In the short example above, we have defined a global variable named a that stores a list of numbers. Then, we get the car and cdr slot values of this object, like in the Lisp programming language.
Finally, we execute the sort funk and give it the > comparison function.Object Types
- agent
- array
- array
- bug
- bytecode
- bytecode_event
- cause
- cfunk
- char
- chunk
- circular_buffer
- compound_object
- cons
- critic
- double
- doublelink
- doublelinklist
- environment
- event
- exception
- fiber
- float
- frame
- funk
- funk2_example
- funk2_post
- gfunkptr
- graph
- graph_edge
- graph_edge_type
- graph_map
- graph_node
- graph_variable
- hash
- imagination_link
- integer
- largeinteger
- larva
- list
- metro
- metrocfunk
- mutex
- object_lattice
- object_lattice_node
- pattern_graph
- physical_object
- physical_place
- physical_position
- physical_rotation
- physical_scene
- physical_sim_object
- physical_texture
- physical_transform
- place
- pointer
- primobject_type
- print_critic
- processor
- ptype
- ptypehash
- redblacktree
- redblacktree_node
- scheduler
- set
- simple_array
- size_2d
- stream
- string
- symbol
- time
- traced_array
- trans
- transframe
- xmlrpc_client