cache2<R, S1, S2> function

R Function() Function(S1, S2) cache2 <R, S1, S2>(
  1. R Function() f(
    1. S1,
    2. S2
    )
)

Example:

var selector = cache2((List<String> names, int limit) =>
       () => names.where((str) => str.startsWith("A")).take(limit).toList());

Implementation

R Function() Function(S1, S2) cache2<R, S1, S2>(
  R Function() Function(S1, S2) f,
) =>
    c.cache2_0(f);