createSimple method

Value createSimple(
  1. Object? implementation(
    1. List<Object?> args
    )
)

Creates a Value-wrapped function without attaching interpreter context.

This is mainly useful for backwards compatibility with older builtins that do not need runtime-aware helpers.

Implementation

Value createSimple(Object? Function(List<Object?> args) implementation) {
  return Value(implementation);
}