コード例 #1
0
 public static Writer <MonoidW, W, Stck <B> > traverse <MonoidW, W, A, B>(Stck <Writer <MonoidW, W, A> > ma, Func <A, B> f) where MonoidW : struct, Monoid <W> =>
 SeqWriterExtensions.TraverseFast(ma, f).Map(toStack);
コード例 #2
0
 public static Writer <MonoidW, W, IEnumerable <B> > traverse <MonoidW, W, A, B>(IEnumerable <Writer <MonoidW, W, A> > ma, Func <A, B> f) where MonoidW : struct, Monoid <W> =>
 SeqWriterExtensions.TraverseFast(ma, f).Map(Enumerable.AsEnumerable);
コード例 #3
0
 public static Writer <MonoidW, W, B[]> traverse <MonoidW, W, A, B>(Writer <MonoidW, W, A>[] ma, Func <A, B> f) where MonoidW : struct, Monoid <W> =>
 SeqWriterExtensions.TraverseFast(ma, f).Map(x => x.ToArray());
コード例 #4
0
 public static Writer <MonoidW, W, HashSet <B> > traverse <MonoidW, W, A, B>(HashSet <Writer <MonoidW, W, A> > ma, Func <A, B> f) where MonoidW : struct, Monoid <W> =>
 SeqWriterExtensions.TraverseFast(ma, f).Map(toHashSet);
コード例 #5
0
 public static Writer <MonoidW, W, IEnumerable <A> > sequence <MonoidW, W, A>(IEnumerable <Writer <MonoidW, W, A> > ma) where MonoidW : struct, Monoid <W> =>
 SeqWriterExtensions.SequenceFast(ma).Map(Enumerable.AsEnumerable);
コード例 #6
0
 public static Writer <MonoidW, W, Seq <B> > traverse <MonoidW, W, A, B>(Seq <Writer <MonoidW, W, A> > ma, Func <A, B> f) where MonoidW : struct, Monoid <W> =>
 SeqWriterExtensions.TraverseFast(ma, f).Map(Prelude.Seq);
コード例 #7
0
 public static Writer <MonoidW, W, Stck <A> > sequence <MonoidW, W, A>(Stck <Writer <MonoidW, W, A> > ma) where MonoidW : struct, Monoid <W> =>
 SeqWriterExtensions.SequenceFast(ma).Map(toStack);
コード例 #8
0
 public static Writer <MonoidW, W, HashSet <A> > sequence <MonoidW, W, A>(HashSet <Writer <MonoidW, W, A> > ma) where MonoidW : struct, Monoid <W> =>
 SeqWriterExtensions.SequenceFast(ma).Map(toHashSet);
コード例 #9
0
 public static Writer <MonoidW, W, A[]> sequence <MonoidW, W, A>(Writer <MonoidW, W, A>[] ma) where MonoidW : struct, Monoid <W> =>
 SeqWriterExtensions.SequenceFast(ma).Map(x => x.ToArray());
コード例 #10
0
 public static Writer <MonoidW, W, Arr <A> > sequence <MonoidW, W, A>(Arr <Writer <MonoidW, W, A> > ma) where MonoidW : struct, Monoid <W> =>
 SeqWriterExtensions.SequenceFast(ma).Map(toArray);
コード例 #11
0
 public static Writer <MonoidW, W, Seq <A> > sequence <MonoidW, W, A>(Seq <Writer <MonoidW, W, A> > ma) where MonoidW : struct, Monoid <W> =>
 SeqWriterExtensions.SequenceFast(ma).Map(Prelude.Seq);