tailr (version 0.1.2)

build_transformed_function: Construct the expression for a transformed function body.

Description

This is where the loop-transformation is done. This function translates the body of a recursive function into a looping function.

Usage

build_transformed_function(fun_expr, info)

Arguments

fun_expr

The original function body.

info

Information passed along the transformations.

Value

The body of the transformed function.