- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 2,143 for iterated (0.16 sec)
-
src/container/ring/example_test.go
r := ring.New(5) // Get the length of the ring n := r.Len() // Initialize the ring with some integer values for i := 0; i < n; i++ { r.Value = i r = r.Next() } // Iterate through the ring and print its contents for j := 0; j < n; j++ { fmt.Println(r.Value) r = r.Next() } // Output: // 0 // 1 // 2 // 3 // 4 } func ExampleRing_Prev() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 2.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableSet.java
: copyOf(elements.iterator()); } /** * Returns an immutable set containing each of {@code elements}, minus duplicates, in the order * each appears first in the source iterator. * * @throws NullPointerException if any of {@code elements} is null */ public static <E> ImmutableSet<E> copyOf(Iterator<? extends E> elements) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Sun Jun 02 13:36:19 UTC 2024 - 22.5K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/collections/ListElementSourceTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 13 05:06:48 UTC 2020 - 12.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/value.go
v, found := m.Find(key) if found { return v } return types.ValOrErr(key, "no such key: %v", key) } // Iterator produces a traits.Iterator which walks over the map keys. // // The Iterator is frequently used within comprehensions. func (m *MapValue) Iterator() traits.Iterator { keys := make([]ref.Val, len(m.fieldMap)) i := 0 for k := range m.fieldMap { keys[i] = types.String(k) i++ }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 10 22:05:55 UTC 2022 - 20.5K bytes - Viewed (0) -
guava-testlib/test/com/google/common/collect/testing/MinimalIterableTest.java
try { iterator.next(); fail(); } catch (NoSuchElementException expected) { } try { iterable.iterator(); fail(); } catch (IllegalStateException expected) { } } public void testOf_one() { Iterable<String> iterable = MinimalIterable.of("a"); Iterator<String> iterator = iterable.iterator(); assertTrue(iterator.hasNext());
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.8K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/execution/plan/Node.java
return dependencyNodes.getDependencySuccessors(); } /** * Iterates over the nodes which are hard successors applying a visitor, i.e. which have a non-removable relationship to the current node. * * This can be a more efficient way to iterate over the successors than {@link #getHardSuccessors()}. */ @OverridingMethodsMustInvokeSuper
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Aug 24 13:30:48 UTC 2023 - 22.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/IteratorsTest.java
public void testSize0() { Iterator<String> iterator = Iterators.emptyIterator(); assertEquals(0, Iterators.size(iterator)); } public void testSize1() { Iterator<Integer> iterator = Collections.singleton(0).iterator(); assertEquals(1, Iterators.size(iterator)); } public void testSize_partiallyConsumed() { Iterator<Integer> iterator = asList(1, 2, 3, 4, 5).iterator(); iterator.next();
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 03 13:01:51 UTC 2024 - 55.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java
} } } /** * Returns an iterator over the elements contained in this collection, <i>in no particular * order</i>. * * <p>The iterator is <i>fail-fast</i>: If the MinMaxPriorityQueue is modified at any time after * the iterator is created, in any way except through the iterator's own remove method, the * iterator will generally throw a {@link ConcurrentModificationException}. Thus, in the face of
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 21:19:52 UTC 2024 - 34K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java
*/ static class IteratorWithSunJavaBug6529795<T> implements Iterator<T> { Iterator<T> iterator; boolean nextThrewException; IteratorWithSunJavaBug6529795(Iterator<T> iterator) { this.iterator = iterator; } @Override public boolean hasNext() { return iterator.hasNext(); } @Override public T next() { try {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jun 11 16:13:05 UTC 2024 - 10.3K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/collections/SortedSetElementSourceTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 02 15:12:14 UTC 2023 - 5.9K bytes - Viewed (0)