Benzer şekilde çalışır yield return C 2.0 anahtar kelimesi.
It works similarly to the yield return keyword in C# 2.0.
yield anahtar sözcüğü iki basit gerçeğe dayanır
The yield keyword is reduced to two simple facts
Bu hile, işlevin arkasındaki mantık hakkında bir fikir verebilir, ancak aslında ne ile olur yield liste tabanlı yaklaşımda ne olduğu önemli ölçüde farklıdır.
This trick may give you an idea of the logic behind the function, but what actually happens with yield is significantly different that what happens in the list based approach.
yield, işlevin bir jeneratör döndürmesi dışında, return olarak kullanılan bir anahtar kelimedir.
Yield is a keyword that is used like return, except the function will return a generator.
yield, işlev bir jeneratör döndüreceği dışında, return gibi kullanılan bir anahtar kelimedir.
Yield is a keyword that is used like return, except the function will return a generator.
Bu teknik size bir fonksiyonun mantığı hakkında bir fikir verebilir, ancak gerçekte bir yield gerçekleşenler liste temelli yaklaşımda olanlardan önemli ölçüde farklıdır.
This trick may give you an idea of the logic behind the function, but what actually happens with yield is significantly different that what happens in the list based approach.
Örneğin, bir dosyayı bir ağ üzerinde satır satır okurken yield işlevini aşağıdaki gibi kullanabilirsiniz
For example, while reading a file line by line on a network, you can use the yield function as follows
İlk aradığınızda for fonksiyonunuzdan yaratılmış bir jeneratör nesnesini çağırır, fonksiyonunuzdaki kodu en baştan yield ulaşana kadar çalıştırır ve ardından döngünün ilk değerini döndürür.
The first time the for calls the generator object created from your function, it will run the code in your function from the beginning until it hits yield, then it'll return the first value of the loop.
Bir emtiaya fiziksel olarak sahip olmakla o emtia için vadeli kontrat sahibi olmak arasındaki fayda miktarı (convenience yield) spot ve vadeli fiyatlar arasındaki farklılaşmayı belirler.
The convenience yield between physically possessing a commodity and having a futures contract for that commodity determines the differentiation between spot and forward prices.
Bir arayan (yield) yöntemini kullanarak yönteme bir değer gönderdiğinde, coroutine bir sonraki send() deyimiyle karşılaşana kadar yürütülür.
When a caller sends a value to the method using the send() method, then the coroutine will execute until the next (yield) statement is encountered.
Bir generator fonksiyonu bir veya birden fazla yield ifadesi içerebilir.
Generator function contains one or more yield statement.
Contenu potentiellement sensible ou inapproprié
Les exemples vous aident à traduire le mot ou l’expression cherchés dans des contextes variés. Ils ne sont ni sélectionnés ni validés par nous et peuvent contenir des mots ou des idées inappropriés. Signalez des exemples à modifier ou à retirer. Les traductions potentiellement sensibles, inappropriées ou familières sont généralement marquées de rouge ou d’orange.