internal object __DebugDisplay() { return(ExtraTopLevelOperators .PrintFormatToString <FSharpFunc <Currency, string> >( new PrintfFormat <FSharpFunc <Currency, string>, Unit, string, string, string>( "%+0.8A" ) ) .Invoke(this)); }
public R GetAs <R>(K column, R fallback) { FSharpChoice <Unit, Tuple <K, long> > fsharpChoice1 = OptionalValueModule.\u007CMissing\u007CPresent\u007C <Tuple <K, long> > (this.index.Lookup(column, Lookup.Exact, (FSharpFunc <long, bool>) new \u0024Series.address\u00401230\u002D1())); if (fsharpChoice1 is FSharpChoice <Unit, Tuple <K, long> > .Choice1Of2) { throw new KeyNotFoundException(((FSharpFunc <K, string>)ExtraTopLevelOperators.PrintFormatToString <FSharpFunc <K, string> >((PrintfFormat <M0, Unit, string, string>) new PrintfFormat <FSharpFunc <K, string>, Unit, string, string, K>("The key %O is not present in the index"))).Invoke(column)); } FSharpChoice <Unit, object> fsharpChoice2 = OptionalValueModule.\u007CMissing\u007CPresent\u007C <object> (this.vector.GetValue(((FSharpChoice <Unit, Tuple <K, long> > .Choice2Of2)fsharpChoice1).get_Item().Item2)); if (!(fsharpChoice2 is FSharpChoice <Unit, object> .Choice1Of2)) { return(Deedle.Internal.Convert.convertType <R>(ConversionKind.Flexible, ((FSharpChoice <Unit, object> .Choice2Of2)fsharpChoice2).get_Item())); } return(fallback); }
Tuple <IIndex <K>, VectorConstruction> IIndexBuilder.DropItem <K>(Tuple <IIndex <K>, VectorConstruction> _arg10, K key) { Tuple <IIndex <K>, VectorConstruction> tuple1 = _arg10; VectorConstruction vectorConstruction1 = tuple1.Item2; IIndex <K> index = tuple1.Item1; FSharpChoice <Unit, Tuple <K, long> > fsharpChoice = OptionalValueModule.MissingPresent <Tuple <K, long> >(index.Lookup(key, Lookup.Exact, (Func <long, bool>) new LinearIndex.DeedleIndicesIIndexBuilderDropItem())); if (fsharpChoice is FSharpChoice <Unit, Tuple <K, long> > .Choice2Of2) { Tuple <K, long> tuple2 = ((FSharpChoice <Unit, Tuple <K, long> > .Choice2Of2)fsharpChoice).get_Item(); VectorConstruction vectorConstruction2 = VectorConstruction.NewDropRange(vectorConstruction1, RangeRestriction <long> .NewFixed(tuple2.Item2, tuple2.Item2)); ReadOnlyCollection <K> keys = index.Keys; return(new Tuple <IIndex <K>, VectorConstruction>((IIndex <K>) new LinearIndex <K>(System.Array.AsReadOnly <K>(ArrayModule.OfSeq <K>(SeqModule.Filter <K>((Func <K, bool>) new LinearIndex.newKeys <K>(key), (IEnumerable <M0>)keys))), (IIndexBuilder)this, FSharpOption <bool> .Some(index.IsOrdered)), vectorConstruction2)); } string paramName = nameof(key); throw new ArgumentException(((Func <K, string>)ExtraTopLevelOperators.PrintFormatToString <Func <K, string> >((PrintfFormat <M0, Unit, string, string>) new PrintfFormat <Func <K, string>, Unit, string, string, K>("The key '%O' is not present in the index."))).Invoke(key), paramName); }
Tuple <FSharpAsync <IIndex <h> >, VectorConstruction> IIndexBuilder.AsyncMaterialize <h>(Tuple <IIndex <h>, VectorConstruction> _arg1) { Tuple <IIndex <h>, VectorConstruction> tuple = _arg1; VectorConstruction vectorConstruction = tuple.Item2; return(new Tuple <FSharpAsync <IIndex <h> >, VectorConstruction>((FSharpAsync <IIndex <h> >)ExtraTopLevelOperators.get_DefaultAsyncBuilder().Return <IIndex <h> >((M0)tuple.Item1), vectorConstruction)); }
public override string ToString() { return(((Func <VectorListTransform, string>)ExtraTopLevelOperators.PrintFormatToString <Func <VectorListTransform, string> >((PrintfFormat <M0, Unit, string, string>) new PrintfFormat <Func <VectorListTransform, string>, Unit, string, string, VectorListTransform>("%+A"))).Invoke(this)); }
internal object __DebugDisplay() { return((object)((Func <VectorConstruction, string>)ExtraTopLevelOperators.PrintFormatToString <Func <VectorConstruction, string> >((PrintfFormat <M0, Unit, string, string>) new PrintfFormat <Func <VectorConstruction, string>, Unit, string, string, string>("%+0.8A"))).Invoke(this)); }
public override string ToString() { return(((FSharpFunc <Aggregation <K>, string>)ExtraTopLevelOperators.PrintFormatToString <FSharpFunc <Aggregation <K>, string> >((PrintfFormat <M0, Unit, string, string>) new PrintfFormat <FSharpFunc <Aggregation <K>, string>, Unit, string, string, Aggregation <K> >("%+A"))).Invoke(this)); }
internal object __DebugDisplay() { return((object)((FSharpFunc <Aggregation <K>, string>)ExtraTopLevelOperators.PrintFormatToString <FSharpFunc <Aggregation <K>, string> >((PrintfFormat <M0, Unit, string, string>) new PrintfFormat <FSharpFunc <Aggregation <K>, string>, Unit, string, string, string>("%+0.8A"))).Invoke(this)); }
public static Frame <R, string> ExpandColumns <R>(this Frame <R, string> frame, IEnumerable <string> names) { return(FrameUtilsModule.expandColumns <R>((FSharpSet <string>)ExtraTopLevelOperators.CreateSet <string>((IEnumerable <M0>)names), frame)); }
public override string ToString() { return ((FSharpFunc<VectorConstruction, string>) ExtraTopLevelOperators.PrintFormatToString<FSharpFunc<VectorConstruction, string>>((PrintfFormat<M0, Unit, string, string>) new PrintfFormat<FSharpFunc<VectorConstruction, string>, Unit, string, string, VectorConstruction>("%+A"))).Invoke(this); }
public override string ToString() { return(((FSharpFunc <RangeRestriction <TAddress>, string>)ExtraTopLevelOperators.PrintFormatToString <FSharpFunc <RangeRestriction <TAddress>, string> >((PrintfFormat <M0, Unit, string, string>) new PrintfFormat <FSharpFunc <RangeRestriction <TAddress>, string>, Unit, string, string, RangeRestriction <TAddress> >("%+A"))).Invoke(this)); }
public override string ToString() { return(ExtraTopLevelOperators.PrintFormatToString(new PrintfFormat <FSharpFunc <Maybe <a>, string>, Unit, string, string, Maybe <a> >("%+A")).Invoke(this)); }
public override string ToString() { return(((FSharpFunc <BinomialHeap <T>, string>)ExtraTopLevelOperators.PrintFormatToString <FSharpFunc <BinomialHeap <T>, string> >((PrintfFormat <M0, Unit, string, string>) new PrintfFormat <FSharpFunc <BinomialHeap <T>, string>, Unit, string, string, BinomialHeap <T> >("%+A"))).Invoke(this)); }
private static string AnyToString <T>(T codeWithPrimitives) { return(ExtraTopLevelOperators .any_to_string(codeWithPrimitives) .Replace("\n", "\r\n")); }