- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 226 for yield (0.04 sec)
-
src/iter/pull_test.go
import ( "fmt" . "iter" "runtime" "testing" ) func count(n int) Seq[int] { return func(yield func(int) bool) { for i := range n { if !yield(i) { break } } } } func squares(n int) Seq2[int, int64] { return func(yield func(int, int64) bool) { for i := range n { if !yield(i, int64(i)*int64(i)) { break } } } } func TestPull(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 19:09:28 UTC 2024 - 10.2K bytes - Viewed (0) -
src/iter/iter.go
// When called as seq(yield), seq calls yield(v) for each value v in the sequence, // stopping early if yield returns false. type Seq[V any] func(yield func(V) bool) // Seq2 is an iterator over sequences of pairs of values, most commonly key-value pairs. // When called as seq(yield), seq calls yield(k, v) for each pair (k, v) in the sequence, // stopping early if yield returns false.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 19:09:28 UTC 2024 - 6.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td
"tf.IfRegion"(%0) ( { %2 = "tf.A"() : () -> (tensor<f32>) "tf.Yield"() : () -> () }, { "tf.Yield"() : () -> () }) { is_stateless = true } : (tensor<i1>) -> () "tf.IfRegion"(%0) ( { %2 = "tf.B"() : () -> (tensor<f32>) "tf.Yield"() : () -> () }, { "tf.Yield"() : () -> () }) { is_stateless = true } : (tensor<i1>) -> () ```
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:18:05 UTC 2024 - 99.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/decompose_optionals.cc
// match the "func.return" within the function. // // So this would transform // func.func @f(...) -> ... { // yield %x : foo // } // ... // func.call @f(...) -> bar // // to // // func.func @f(...) -> ... { // yield %x : foo // } // ... // func.call f(...) -> foo auto symbol_uses = f.getSymbolUses(f->getParentOp());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:18:05 UTC 2024 - 9.8K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/GcFinalizationTest.java
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Jun 10 19:21:11 UTC 2024 - 7.4K bytes - Viewed (0) -
src/vendor/golang.org/x/crypto/sha3/shake.go
// N is used to define functions based on cSHAKE, it can be empty when plain cSHAKE is // desired. S is a customization byte string used for domain separation - two cSHAKE // computations on same input with different S yield unrelated outputs. // When N and S are both empty, this is equivalent to NewShake128. func NewCShake128(N, S []byte) ShakeHash { if len(N) == 0 && len(S) == 0 { return NewShake128() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 5.4K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/KDocReferenceResolver.kt
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Jun 04 08:26:19 UTC 2024 - 22.3K bytes - Viewed (0) -
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/signatures/KtVariableLikeSignature.kt
* * Unfortunately, [symbol] for the `action("")` call will be pointing to the `Function1<P1, R>.invoke(p1: P1): R`, because we * intentionally unwrap use-site substitution overrides. Because of this, `symbol.name` will yield `"p1"`, and not `"bar"`. * * To overcome this problem, [name] property is introduced: it allows to get the intended name of the parameter, * with respect to `@ParameterName` annotation. *
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Jun 11 15:45:42 UTC 2024 - 3.8K bytes - Viewed (0) -
platforms/core-configuration/bean-serialization-services/src/main/kotlin/org/gradle/internal/serialize/beans/services/BeanSchema.kt
) private val Class<*>.relevantFields: Sequence<Field> get() = declaredFields.asSequence() .filterNot { field -> field.isStatic || field.isTransient || Workarounds.isIgnoredBeanField(field) }.filter { field -> isNotAbstractTaskField(field) || field.name in abstractTaskRelevantFields }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 23:09:56 UTC 2024 - 5.7K bytes - Viewed (0) -
analysis/analysis-api-platform-interface/src/org/jetbrains/kotlin/analysis/api/platform/declarations/KotlinFileBasedDeclarationProvider.kt
for (child in kotlinFile.declarations) { if (child is KtScript) { yieldAll(child.declarations) } else { yield(child) } } } } override fun getClassLikeDeclarationByClassId(classId: ClassId): KtClassLikeDeclaration? {
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Thu Jun 06 17:44:50 UTC 2024 - 6.3K bytes - Viewed (0)