Home
last modified time | relevance | path

Searched refs:iterables (Results 1 – 25 of 74) sorted by relevance

123

/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/util/
DDelegatingIterator.java56 public Iterable<T>[] iterables; field in DelegatingIterator.MyIterable
60 iterables = s; in MyIterable()
66 Iterator<T>[] iterators = new Iterator[iterables.length]; in iterator()
67 for (int i = 0; i < iterables.length; ++i) { in iterator()
68 iterators[i] = iterables[i].iterator(); in iterator()
DWith.java248 public static <V> With<V> in(Iterable<V>... iterables) { in in() argument
249 return new With<V>().and(iterables); in in()
299 public With<V> and(Iterable<V>... iterables) { in and() argument
300 for (Iterable<V> iterable : iterables) { in and()
/external/tensorflow/tensorflow/python/autograph/operators/
Dpy_builtins.py462 def zip_(*iterables): argument
463 if all(isinstance(x, dataset_ops.DatasetV2) for x in iterables):
464 return _tf_dataset_zip(*iterables)
465 return _py_zip(*iterables)
468 def _tf_dataset_zip(*iterables): argument
469 return dataset_ops.DatasetV2.zip(iterables)
472 def _py_zip(*iterables): argument
473 return zip(*iterables)
476 def map_(fn, *iterables): argument
477 if all(isinstance(x, dataset_ops.DatasetV2) for x in iterables):
[all …]
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/api/input/
DCompoundDirectoryInputFileGenerator.java37 List<Iterable<? extends File>> iterables = new ArrayList<>(generators.size()); in generate() local
39 iterables.add(generator.generate()); in generate()
41 return Iterables.concat(iterables); in generate()
/external/python/setuptools/pkg_resources/_vendor/more_itertools/
Dmore.py412 def collate(*iterables, **kwargs): argument
447 return merge(*iterables, **kwargs)
798 def unique_to_each(*iterables): argument
825 pool = [list(it) for it in iterables]
1081 def interleave(*iterables): argument
1092 return chain.from_iterable(zip(*iterables))
1095 def interleave_longest(*iterables): argument
1107 i = chain.from_iterable(zip_longest(*iterables, fillvalue=_marker))
1111 def interleave_evenly(iterables, lengths=None): argument
1137 lengths = [len(it) for it in iterables]
[all …]
Drecipes.py303 def roundrobin(*iterables): argument
315 pending = len(iterables)
316 nexts = cycle(iter(it).__next__ for it in iterables)
/external/python/cpython2/Doc/library/
Ditertools.rst92 .. function:: chain(*iterables)
95 exhausted, then proceeds to the next iterable, until all of the iterables are
99 def chain(*iterables):
101 for it in iterables:
111 def from_iterable(iterables):
113 for it in iterables:
221 Stops when either the *data* or *selectors* iterables has been exhausted.
374 .. function:: imap(function, *iterables)
377 iterables. If *function* is set to ``None``, then :func:`imap` returns the
379 exhausted instead of filling in ``None`` for shorter iterables. The reason for
[all …]
Dfuture_builtins.rst64 .. function:: zip(*iterables)
/external/python/setuptools/setuptools/_vendor/more_itertools/
Dmore.py398 def collate(*iterables, **kwargs): argument
433 return merge(*iterables, **kwargs)
706 def unique_to_each(*iterables): argument
733 pool = [list(it) for it in iterables]
989 def interleave(*iterables): argument
1000 return chain.from_iterable(zip(*iterables))
1003 def interleave_longest(*iterables): argument
1015 i = chain.from_iterable(zip_longest(*iterables, fillvalue=_marker))
1492 def _zip_equal_generator(iterables): argument
1493 for combo in zip_longest(*iterables, fillvalue=_marker):
[all …]
Drecipes.py300 def roundrobin(*iterables): argument
312 pending = len(iterables)
313 nexts = cycle(iter(it).__next__ for it in iterables)
/external/grpc-grpc/src/python/grpcio/grpc/framework/foundation/
Dlogging_pool.py54 def map(self, func, *iterables, **kwargs): argument
56 _wrap(func), *iterables, timeout=kwargs.get('timeout', None))
/external/guava/guava-tests/test/com/google/common/collect/
DIterablesTest.java1386 Iterable<Iterable<Integer>> iterables = ImmutableList.of(iterable0);
1389 verifyMergeSorted(iterables, ImmutableList.<Integer>of());
1395 Iterable<Iterable<Integer>> iterables = ImmutableList.of(iterable0);
1398 verifyMergeSorted(iterables, iterable0);
1402 List<Iterable<Integer>> iterables = Lists.newLinkedList();
1412 iterables.add(Ordering.natural().sortedCopy(list));
1415 verifyMergeSorted(iterables, allIntegers);
1420 List<Iterable<Integer>> iterables = Lists.newLinkedList();
1429 iterables.add(Ordering.natural().sortedCopy(list));
1432 verifyMergeSorted(iterables, allIntegers);
[all …]
/external/guava/android/guava-tests/test/com/google/common/collect/
DIterablesTest.java1349 Iterable<Iterable<Integer>> iterables = ImmutableList.of(iterable0);
1352 verifyMergeSorted(iterables, ImmutableList.<Integer>of());
1358 Iterable<Iterable<Integer>> iterables = ImmutableList.of(iterable0);
1361 verifyMergeSorted(iterables, iterable0);
1365 List<Iterable<Integer>> iterables = Lists.newLinkedList();
1375 iterables.add(Ordering.natural().sortedCopy(list));
1378 verifyMergeSorted(iterables, allIntegers);
1383 List<Iterable<Integer>> iterables = Lists.newLinkedList();
1392 iterables.add(Ordering.natural().sortedCopy(list));
1395 verifyMergeSorted(iterables, allIntegers);
[all …]
/external/python/cpython3/Doc/library/
Ditertools.rst173 .. function:: chain(*iterables)
176 exhausted, then proceeds to the next iterable, until all of the iterables are
180 def chain(*iterables):
182 for it in iterables:
192 def from_iterable(iterables):
194 for it in iterables:
299 Stops when either the *data* or *selectors* iterables has been exhausted.
556 .. function:: product(*iterables, repeat=1)
558 Cartesian product of input iterables.
565 the input's iterables are sorted, the product tuples are emitted in sorted
[all …]
Dconcurrent.futures.rst41 .. method:: map(func, *iterables, timeout=None, chunksize=1)
43 Similar to :func:`map(func, *iterables) <map>` except:
45 * the *iterables* are collected immediately rather than lazily;
59 When using :class:`ProcessPoolExecutor`, this method chops *iterables*
62 setting *chunksize* to a positive integer. For very long iterables,
Dheapq.rst86 .. function:: merge(*iterables, key=None, reverse=False)
92 Similar to ``sorted(itertools.chain(*iterables))`` but returns an iterable, does
104 to ``sorted(itertools.chain(*iterables), reverse=True)``, all iterables must
Dselect.rst120 The first three arguments are iterables of 'waitable objects': either
129 Empty iterables are allowed, but acceptance of three empty iterables is
144 Among the acceptable object types in the iterables are Python :term:`file
/external/python/cpython3/Lib/
Dheapq.py314 def merge(*iterables, key=None, reverse=False): argument
347 for order, it in enumerate(map(iter, iterables)):
370 for order, it in enumerate(map(iter, iterables)):
/external/python/cpython3/Misc/NEWS.d/
D3.6.3.rst7 Re-allow arbitrary iterables in `concurrent.futures.as_completed()`. Fixes
/external/python/cpython3/Lib/concurrent/futures/
Dprocess.py183 def _get_chunks(*iterables, chunksize): argument
185 it = zip(*iterables)
710 def map(self, fn, *iterables, timeout=None, chunksize=1): argument
735 _get_chunks(*iterables, chunksize=chunksize),
D_base.py573 def map(self, fn, *iterables, timeout=None, chunksize=1): argument
598 fs = [self.submit(fn, *args) for args in zip(*iterables)]
/external/python/cpython2/Lib/
Dheapq.py357 def merge(*iterables): argument
373 for itnum, it in enumerate(map(iter, iterables)):
/external/perfetto/ui/
Dtsconfig.base.json14 …"downlevelIteration": true, // Provide full support for iterables in 'for-of', spread, …
/external/guava/android/guava/src/com/google/common/collect/
DIterables.java1055 final Iterable<? extends Iterable<? extends T>> iterables,
1057 checkNotNull(iterables, "iterables");
1064 Iterables.transform(iterables, Iterables.<T>toIterator()), comparator);
/external/guava/guava/src/com/google/common/collect/
DIterables.java1065 final Iterable<? extends Iterable<? extends T>> iterables,
1067 checkNotNull(iterables, "iterables");
1074 Iterables.transform(iterables, Iterables.<T>toIterator()), comparator);

123