eval

func eval(f : Entity, args : list of Entity) -> Entity

Returns the result of applying the given function to the given list of arguments. The first argument can either be a function value, or a string. If it is the latter, it is `looked up' at run-time, in the same way as the compiler looks up function names at compile-time.
For example:
  eval(`hd' [`abc']) = eval(hd [`abc']) = `a'
  eval(`+' [1, 2]) = 1 + 2 = 3
  eval(`div' [3, 2]) = eval(div, [3, 2]) = 1

Herman Venter

This is Slim documentation as snarfed on 27 May 1999 by dB.