private static MondValue CreateGenerator(double begin, double end, bool inclusive) { var actualBegin = Math.Min(begin, end); var actualEnd = Math.Max(begin, end); var range = MondValue.FromEnumerable(Generate(actualBegin, actualEnd, inclusive)); range["begin"] = begin; range["end"] = end; range["inclusive"] = inclusive; return(range); }
private static MondValue Stdin(MondState state, params MondValue[] arguments) { return(MondValue.FromEnumerable(StdinEnumerable().Select(c => new MondValue(new string(c, 1))))); }