Interface MutableEvalEnv

All Superinterfaces:
EvalEnv
All Known Implementing Classes:
EvalEnvs.MutableArraySubEvalEnv, EvalEnvs.MutablePatSubEvalEnv, EvalEnvs.MutableSubEvalEnv

public interface MutableEvalEnv extends EvalEnv
An evaluation environment whose last entry is mutable.
  • Method Details

    • set

      void set(Object value)
      Puts a value into this environment.
    • setOpt

      default boolean setOpt(Object value)
      Puts a value into this environment in a way that may not succeed.

      For example, if this environment is based on the pattern (x, 2) then (1, 2) will succeed and will bind x to 1, but (3, 4) will fail.

      The default implementation calls set(java.lang.Object) and always succeeds.