Home   Manual   Type Index   Symbol Index   Topics Index

std::eval

evaluate a function

Parameters

body
args (zero or more arguments)

Description

Allows the direct evaluation of a lambda-function.

Example

writeln!
  eval
    : (fac^ n)
      if
        n <= 1
        -> n
        -> n * fac(n-1)
    command_line_arguments(1).to_integer