Ejemplo n.º 1
0
        public object ToFunObject(object clrObject)
        {
            var array        = clrObject as Array;
            var funnyObjects = new object[array.Length];

            for (int i = 0; i < array.Length; i++)
            {
                var val = array.GetValue(i);
                funnyObjects[i] = _elementConverter.ToFunObject(val);
            }
            return(new ImmutableFunArray(funnyObjects, FunnyType.ArrayTypeSpecification.FunnyType));
        }
Ejemplo n.º 2
0
 public override object Calc(object a) =>
 _resultConverter.ToFunObject(_function((Tin)_argConverter.ToClrObject(a)));