Home
last modified time | relevance | path

Searched defs:iterable (Results 1 – 25 of 252) sorted by relevance

1234567891011

/external/python/setuptools/pkg_resources/_vendor/more_itertools/
Drecipes.py63 def take(n, iterable): argument
97 def tail(n, iterable): argument
148 def nth(iterable, n, default=None): argument
161 def all_equal(iterable): argument
175 def quantify(iterable, pred=bool): argument
185 def pad_none(iterable): argument
202 def ncycles(iterable, n): argument
261 def _pairwise(iterable): argument
281 def pairwise(iterable): argument
287 def grouper(iterable, n, fillvalue=None): argument
[all …]
Dmore.py138 def chunked(iterable, n, strict=False): argument
173 def first(iterable, default=_marker): argument
201 def last(iterable, default=_marker): argument
230 def nth_or_last(iterable, n, default=_marker): argument
306 def __init__(self, iterable): argument
482 def ilen(iterable): argument
527 def one(iterable, too_short=None, too_long=None): argument
598 def strictly_n(iterable, n, too_short=None, too_long=None): argument
672 def distinct_permutations(iterable, r=None): argument
772 def intersperse(e, iterable, n=1): argument
[all …]
/external/python/setuptools/setuptools/_vendor/more_itertools/
Drecipes.py60 def take(n, iterable): argument
94 def tail(n, iterable): argument
145 def nth(iterable, n, default=None): argument
158 def all_equal(iterable): argument
172 def quantify(iterable, pred=bool): argument
182 def pad_none(iterable): argument
199 def ncycles(iterable, n): argument
258 def _pairwise(iterable): argument
278 def pairwise(iterable): argument
284 def grouper(iterable, n, fillvalue=None): argument
[all …]
Dmore.py126 def chunked(iterable, n, strict=False): argument
159 def first(iterable, default=_marker): argument
187 def last(iterable, default=_marker): argument
216 def nth_or_last(iterable, n, default=_marker): argument
292 def __init__(self, iterable): argument
468 def ilen(iterable): argument
513 def one(iterable, too_short=None, too_long=None): argument
580 def distinct_permutations(iterable, r=None): argument
680 def intersperse(e, iterable, n=1): argument
790 def substrings(iterable): argument
[all …]
/external/guava/guava/src/com/google/common/collect/
DIterables.java74 final Iterable<? extends T> iterable) { in unmodifiableIterable()
91 public static <E> Iterable<E> unmodifiableIterable(ImmutableCollection<E> iterable) { in unmodifiableIterable()
97 private final Iterable<? extends T> iterable; field in Iterables.UnmodifiableIterable
99 private UnmodifiableIterable(Iterable<? extends T> iterable) { in UnmodifiableIterable()
127 public static int size(Iterable<?> iterable) { in size()
141 Iterable<? extends @Nullable Object> iterable, @CheckForNull Object element) { in contains()
248 public static String toString(Iterable<?> iterable) { in toString()
262 public static <T extends @Nullable Object> T getOnlyElement(Iterable<T> iterable) { in getOnlyElement()
277 Iterable<? extends T> iterable, @ParametricNullness T defaultValue) { in getOnlyElement()
294 public static <T> @Nullable T[] toArray(Iterable<? extends @Nullable T> iterable, Class<T> type) { in toArray()
[all …]
DFluentIterable.java126 FluentIterable(Iterable<E> iterable) { in FluentIterable()
141 public static <E extends @Nullable Object> FluentIterable<E> from(final Iterable<E> iterable) { in from()
DAllEqualOrdering.java41 public <E extends @Nullable Object> List<E> sortedCopy(Iterable<E> iterable) { in sortedCopy()
47 public <E extends @Nullable Object> ImmutableList<E> immutableSortedCopy(Iterable<E> iterable) { in immutableSortedCopy()
/external/guava/android/guava/src/com/google/common/collect/
DIterables.java71 final Iterable<? extends T> iterable) { in unmodifiableIterable()
88 public static <E> Iterable<E> unmodifiableIterable(ImmutableCollection<E> iterable) { in unmodifiableIterable()
94 private final Iterable<? extends T> iterable; field in Iterables.UnmodifiableIterable
96 private UnmodifiableIterable(Iterable<? extends T> iterable) { in UnmodifiableIterable()
113 public static int size(Iterable<?> iterable) { in size()
127 Iterable<? extends @Nullable Object> iterable, @CheckForNull Object element) { in contains()
286 public static String toString(Iterable<?> iterable) { in toString()
300 public static <T extends @Nullable Object> T getOnlyElement(Iterable<T> iterable) { in getOnlyElement()
315 Iterable<? extends T> iterable, @ParametricNullness T defaultValue) { in getOnlyElement()
332 public static <T> @Nullable T[] toArray(Iterable<? extends @Nullable T> iterable, Class<T> type) { in toArray()
[all …]
DFluentIterable.java129 FluentIterable(Iterable<E> iterable) { in FluentIterable()
144 public static <E extends @Nullable Object> FluentIterable<E> from(final Iterable<E> iterable) { in from()
/external/tensorflow/tensorflow/python/autograph/tests/
Dloop_distributed_test.py25 def no_vars_loop(strat, iterable): argument
30 def single_var_loop(strat, iterable): argument
38 def loop_with_break(strat, iterable): argument
47 def loop_with_continue(strat, iterable): argument
56 def two_vars_loop(strat, iterable): argument
66 def enumeration(strat, iterable): argument
76 def iterator_next(strat, iterable): argument
81 def iterator_next_multiple_calls(strat, iterable): argument
88 def iterator_next_in_limited_loop(strat, iterable, l): argument
96 def iterator_next_stopping(strat, iterable, cond): argument
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DIterablesTest.java61 Iterable<String> iterable = Collections.emptySet(); in testSize0() local
66 Iterable<String> iterable = Collections.singleton("a"); in testSize1Collection() local
71 Iterable<Integer> iterable = in testSize2NonCollection() local
94 private static Iterable<String> iterable(String... elements) { in iterable() method in IterablesTest
DFluentIterableTest.java85 FluentIterable<Integer> iterable = FluentIterable.from(asList(1)); in testFrom_alreadyFluentIterable() local
148 Iterable<Integer> iterable = asList(1, 2, 3); in testConcatPeformingFiniteCycle() local
204 Iterable<Integer> iterable = in testSize2NonCollection() local
237 Iterable<String> iterable = iterable("a", null, "b"); in testContains_nullIterableYes() local
242 Iterable<String> iterable = iterable("a", "b"); in testContains_nullIterableNo() local
262 Iterable<String> iterable = iterable("a", "b"); in testContains_nonNullIterableNo() local
379 FluentIterable<String> iterable = FluentIterable.<String>from(list); in testAnyMatch() local
391 FluentIterable<String> iterable = FluentIterable.<String>from(list); in testAllMatch() local
402 FluentIterable<String> iterable = FluentIterable.from(Lists.newArrayList("cool", "pants")); in testFirstMatch() local
418 Iterable<Integer> iterable = FluentIterable.from(input).transform(new IntegerValueOfFunction()); in testTransformWith() local
[all …]
/external/guava/android/guava-tests/test/com/google/common/collect/
DIterablesTest.java61 Iterable<String> iterable = Collections.emptySet(); in testSize0() local
66 Iterable<String> iterable = Collections.singleton("a"); in testSize1Collection() local
71 Iterable<Integer> iterable = in testSize2NonCollection() local
94 private static Iterable<String> iterable(String... elements) { in iterable() method in IterablesTest
DFluentIterableTest.java81 FluentIterable<Integer> iterable = FluentIterable.from(asList(1)); in testFrom_alreadyFluentIterable() local
144 Iterable<Integer> iterable = asList(1, 2, 3); in testConcatPeformingFiniteCycle() local
200 Iterable<Integer> iterable = in testSize2NonCollection() local
233 Iterable<String> iterable = iterable("a", null, "b"); in testContains_nullIterableYes() local
238 Iterable<String> iterable = iterable("a", "b"); in testContains_nullIterableNo() local
258 Iterable<String> iterable = iterable("a", "b"); in testContains_nonNullIterableNo() local
375 FluentIterable<String> iterable = FluentIterable.<String>from(list); in testAnyMatch() local
387 FluentIterable<String> iterable = FluentIterable.<String>from(list); in testAllMatch() local
398 FluentIterable<String> iterable = FluentIterable.from(Lists.newArrayList("cool", "pants")); in testFirstMatch() local
414 Iterable<Integer> iterable = FluentIterable.from(input).transform(new IntegerValueOfFunction()); in testTransformWith() local
[all …]
/external/guava/android/guava-testlib/test/com/google/common/collect/testing/
DMinimalIterableTest.java34 Iterable<String> iterable = MinimalIterable.<String>of(); in testOf_empty() local
50 Iterable<String> iterable = MinimalIterable.of("a"); in testOf_one() local
68 Iterable<String> iterable = MinimalIterable.from(Collections.<String>emptySet()); in testFrom_empty() local
84 Iterable<String> iterable = MinimalIterable.from(Collections.singleton("a")); in testFrom_one() local
/external/guava/guava-testlib/test/com/google/common/collect/testing/
DMinimalIterableTest.java34 Iterable<String> iterable = MinimalIterable.<String>of(); in testOf_empty() local
50 Iterable<String> iterable = MinimalIterable.of("a"); in testOf_one() local
68 Iterable<String> iterable = MinimalIterable.from(Collections.<String>emptySet()); in testFrom_empty() local
84 Iterable<String> iterable = MinimalIterable.from(Collections.singleton("a")); in testFrom_one() local
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/stmt/
DForeachStmt.java39 private Expression iterable; field in ForeachStmt
47 final Expression iterable, final Statement body) { in ForeachStmt()
54 final VariableDeclarationExpr var, final Expression iterable, in ForeachStmt()
69 public ForeachStmt(VariableDeclarationExpr var, String iterable, BlockStmt body) { in ForeachStmt()
105 public ForeachStmt setIterable(final Expression iterable) { in setIterable()
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/util/
DTransformer.java25 …> Transformer<S, V> iterator(Transform<S, ? extends V> transform, Iterable<? extends S> iterable) { in iterator()
33 …public static <S, V> With<V> iterable(Transform<S, ? extends V> transform, Iterator<? extends S> i… in iterable() method in Transformer
37 …public static <S, V> With<V> iterable(Transform<S, ? extends V> transform, Iterable<? extends S> i… in iterable() argument
41 public static <S, V> With<V> iterable(Transform<S, ? extends V> transform, S... items) { in iterable() method in Transformer
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/
DForEachStmt.java54 private Expression iterable; field in ForEachStmt
63 …public ForEachStmt(final VariableDeclarationExpr variable, final Expression iterable, final Statem… in ForEachStmt()
71 …public ForEachStmt(TokenRange tokenRange, VariableDeclarationExpr variable, Expression iterable, S… in ForEachStmt()
79 public ForEachStmt(VariableDeclarationExpr variable, String iterable, BlockStmt body) { in ForEachStmt()
125 public ForEachStmt setIterable(final Expression iterable) { in setIterable()
/external/tensorflow/tensorflow/python/autograph/operators/
Dpy_builtins.py580 def filter_(function, iterable): argument
586 def _tf_dataset_filter(function, iterable): argument
590 def _py_filter(function, iterable): argument
594 def any_(iterable): argument
605 def _tf_dataset_any(iterable): argument
619 def _py_any(iterable): argument
623 def all_(iterable): argument
631 def _tf_dataset_all(iterable): argument
645 def _py_all(iterable): argument
649 def sorted_(iterable, key=UNSPECIFIED, reverse=UNSPECIFIED): argument
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/proper_source/com/github/javaparser/ast/stmt/
DForeachStmt.java36 private Expression iterable; field in ForeachStmt
44 final Expression iterable, final Statement body) { in ForeachStmt()
52 final VariableDeclarationExpr var, final Expression iterable, in ForeachStmt()
87 public void setIterable(final Expression iterable) { in setIterable()
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DMultimapPutIterableTester.java177 Iterable<V> iterable = in testPutAllEmptyIterableOnAbsentKey() local
185 assertFalse(multimap().putAll(k3(), iterable)); in testPutAllEmptyIterableOnAbsentKey() local
198 Iterable<V> iterable = in testPutAllOnlyCallsIteratorOnce() local
210 multimap().putAll(k3(), iterable); in testPutAllOnlyCallsIteratorOnce() local
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/google/
DMultimapPutIterableTester.java177 Iterable<V> iterable = in testPutAllEmptyIterableOnAbsentKey() local
185 assertFalse(multimap().putAll(k3(), iterable)); in testPutAllEmptyIterableOnAbsentKey() local
198 Iterable<V> iterable = in testPutAllOnlyCallsIteratorOnce() local
210 multimap().putAll(k3(), iterable); in testPutAllOnlyCallsIteratorOnce() local
/external/python/cpython2/Lib/
Dheapq.py203 def nlargest(n, iterable): argument
221 def nsmallest(n, iterable): argument
399 def nsmallest(n, iterable, key=None): argument
436 def nlargest(n, iterable, key=None): argument
/external/python/cpython3/Modules/clinic/
Ditertoolsmodule.c.h20 PyObject *iterable; in pairwise_new() local
162 PyObject *iterable; in itertools__tee() local
194 PyObject *iterable; in itertools_tee() local
236 PyObject *iterable; in itertools_cycle() local
377 PyObject *iterable; in itertools_combinations() local
425 PyObject *iterable; in itertools_combinations_with_replacement() local
473 PyObject *iterable; in itertools_permutations() local
512 PyObject *iterable; in itertools_accumulate() local

1234567891011