Nasal library/geo: Difference between revisions

Jump to navigation Jump to search
→‎PositionedSearch: Add .new() example
(→‎Classes: Start geo.PositionedSearch)
(→‎PositionedSearch: Add .new() example)
Line 294: Line 294:
|param4 = obj
|param4 = obj
|param4text = Optional <code>'''me'''</code> reference. This will be used as the <code>'''me'''</code> reference in each of the above fucntions.
|param4text = Optional <code>'''me'''</code> reference. This will be used as the <code>'''me'''</code> reference in each of the above fucntions.
|example1 =  
|example1 = var searchCmd = func(){
    return ["a", "b", "c"];
};
var added = func(el){
    print("Element '", el, "' added");
}
var removed = func(el){
    print("Element '", el, "' removed");
}
 
var searcher = geo.PositionedSearch.new(searchCmd, added, removed);
}}
}}
==== test() ====
==== test() ====

Navigation menu