(!******************************************************* Mosel Example Problems ====================== file exbtree.mos ```````````````` Example of use lists and of the 'bintree' package -- Note: The package 'bintree' (file bintree.mos) needs to be compiled before executing this model -- (c) 2008 Fair Isaac Corporation author: Y. Colombani, 2006 *******************************************************!) model exbtree uses ':bintree.bim' declarations arbre:tree allvals:list of real end-declarations repeat insert(arbre,round(random*100)) until arbre.size = 10 write("Values in the binary tree:"); show(arbre) allvals:=tolist(arbre) writeln("The smallest value:",allvals.first) writeln("The biggest value:",allvals.last) writeln("The 5 first entries:",splithead(allvals,5)) writeln("Remaining after split:",allvals) end-model