public static Frame <TRowKey, TColumnKey> GetRowsAt <TRowKey, TColumnKey>(this Frame <TRowKey, TColumnKey> frame, params int[] indices) { int[] numArray1 = indices; FSharpFunc <int, TRowKey> fsharpFunc1 = (FSharpFunc <int, TRowKey>) new FrameExtensions.keys9 <TRowKey, TColumnKey>(frame.Rows); int[] numArray2 = numArray1; if ((object)numArray2 == null) { throw new ArgumentNullException("array"); } TRowKey[] rowKeyArray1 = new TRowKey[numArray2.Length]; for (int index = 0; index < rowKeyArray1.Length; ++index) { rowKeyArray1[index] = fsharpFunc1.Invoke(numArray2[index]); } TRowKey[] rowKeyArray2 = rowKeyArray1; int[] numArray3 = indices; FSharpFunc <int, ISeries <TColumnKey> > fsharpFunc2 = (FSharpFunc <int, ISeries <TColumnKey> >) new FrameExtensions.values0 <TColumnKey, TRowKey>(frame); int[] numArray4 = numArray3; if ((object)numArray4 == null) { throw new ArgumentNullException("array"); } ISeries <TColumnKey>[] seriesArray1 = new ISeries <TColumnKey> [numArray4.Length]; for (int index = 0; index < seriesArray1.Length; ++index) { seriesArray1[index] = fsharpFunc2.Invoke(numArray4[index]); } ISeries <TColumnKey>[] seriesArray2 = seriesArray1; return(FFrameextensions.FrameofRowsStatic <TRowKey, ISeries <TColumnKey>, TColumnKey>((IEnumerable <Tuple <TRowKey, ISeries <TColumnKey> > >)SeqModule.Zip <TRowKey, ISeries <TColumnKey> >((IEnumerable <M0>)rowKeyArray2, (IEnumerable <M1>)seriesArray2))); }
public static Frame <TRowKey, TColumnKey> Merge <TRowKey, TColumnKey>(this Frame <TRowKey, TColumnKey> frame, TRowKey rowKey, ISeries <TColumnKey> row) { return(frame.Merge(FFrameextensions.FrameofRowsStatic <TRowKey, ISeries <TColumnKey>, TColumnKey>((IEnumerable <Tuple <TRowKey, ISeries <TColumnKey> > >)FSharpList <Tuple <TRowKey, ISeries <TColumnKey> > > .Cons(FFrameextensions.op_EqualsGreater <TRowKey, ISeries <TColumnKey> >(rowKey, row), FSharpList <Tuple <TRowKey, ISeries <TColumnKey> > > .get_Empty())))); }