| |||||||||||||
Basic set operations Description Example 'setops':
Source Files By clicking on a file name, a preview is opened at the bottom of this page.
setcomp.mos (!****************************************************** Mosel User Guide Example Problems ================================= file setcomp.mos ```````````````` Comparison operators for sets. (c) 2008 Fair Isaac Corporation author: S. Heipcke, 2001 *******************************************************!) model "Set comparisons" declarations RAINBOW = {"red", "orange", "yellow", "green", "blue", "purple"} BRIGHT = {"yellow", "orange"} DARK = {"blue", "brown", "black"} end-declarations writeln("BRIGHT is included in RAINBOW: ", BRIGHT <= RAINBOW) writeln("RAINBOW is a superset of DARK: ", RAINBOW >= DARK) writeln("BRIGHT is different from DARK: ", BRIGHT <> DARK) writeln("BRIGHT is the same as RAINBOW: ", BRIGHT = RAINBOW) end-model | |||||||||||||
© Copyright 2024 Fair Isaac Corporation. |