<random lines>
export default function(cheddar, CheddarRational) {
return new cheddar.func(
[
["val", {
Optional: true
}]
],
function(scope, input) {
let val;
if (input("self") instanceof CheddarRational)
val = input("self");
else if (input("val").constructor.Name === "nil")
return <random string>;
else
val = of(input("val"), cheddar, CheddarRational);