Answer Posted / Digvijay Singh
The 'yield' keyword in Scala is used in for comprehensions and generator expressions to produce a sequence (like an array or Iterator) from a collection or series of values. The sequence consists of all the values generated by the loop body, separated by commas.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers