Home   Manual   Type Index   Symbol Index   Topics Index


There are no "loops" in Funky. But there are a lot of recursive functions that take the role of loops in imperative languages.

The dynamic lifetime of Funky variables makes it easy to use variables set in one iteration of a "loop" in later iterations without the need to explicitely pass their values around.

std::break   the "keyword" (function) to exit from a loop
std::for_each   iterates over all items of a collection
std::from_to   a loop iterating over a sequence of values
std::loop   a simple loop
std::next   the "keyword" (function) to start the next iteration of a loop
std::repeat   invoke a statement sequence for a specific number of times