public bool Check(IValue val) { return(Check(val.Type) || (val.Type.RawTypeOf == RawTypeOf && Predicate.Operator("()", val).Equals(ValueFactory.make(true)))); }
public FunctionValue(Func <IValue, IValue> func, IValue parameterType) { this.innerFunction = func; this.parameterType = parameterType; this.returnType = ValueFactory.make(new Type(ValueType.ANY)); }
public ListType(IEnumerable <IValue> types, String description) { this.predicate = ValueFactory.make(makeListTypeChecker(types)); this.friendlyName = description; this.creationList = ValueFactory.make(types); }