tailr (version 0.1.2)

can_call_be_transformed: Tests if a call object can be transformed.

Description

Tests if a call object can be transformed.

Usage

can_call_be_transformed(call_name, call_arguments, fun_name, fun_call_allowed,
  cc)

Arguments

call_name

Name (function) of the call.

call_arguments

The call's arguments

fun_name

The name of the recursive function we want to transform

fun_call_allowed

Whether a recursive call is allowed at this point

cc

Current continuation to abort if a transformation is not possible

Value

TRUE, if the expression can be transformed. Invokes cc otherwise.