// 11.ck : function with return type // functionfun float f(){ return 1.0;} // callf() => float x; // testif( x == 1.0 ) <<<"success">>>;// 11.ck : function with return type
// function
fun float f()
{
return 1.0;
}
// call
f() => float x;
// test
if( x == 1.0 ) <<<"success">>>;