do

Syntax

def <result> = fold <index> = <start> to <end> [ with <variable> [ = <init> ] ] [ while <condition> ] do <expression>;

Description

This reserved word defines an action to be performed when calculating the fold function. For more information, see the fold reserved word article.