Changes

Jump to: navigation, search

GPU621/The Chapel Programming Language

184 bytes removed, 13:51, 20 November 2020
Iterators
=== Iterators ===
Chapel implements iterators using a function-Iterators are declared like syntax, although the semantic behaviour of an iterator differs from that of a function procedure in some important waysChapel. Unlike functions, instead of returning a valueprocesses, Chapel iterators typically return a sequence of values. The  We declared the '''yield''' statement, legal only within inside the iterator bodies, it returns a value and temporarily suspends the execution of the code within the iterator.
iterator fibonacci(n): integer {
25
edits

Navigation menu