Class EvalEnvs.MutablePatSubEvalEnv

    • Field Detail

      • slot

        private int slot
    • Method Detail

      • fix

        public EvalEnv fix()
        Description copied from interface: EvalEnv
        Converts this environment to a non-mutable environment.
        Specified by:
        fix in interface EvalEnv
      • setOpt

        public boolean setOpt​(Object value)
        Description copied from interface: MutableEvalEnv
        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 MutableEvalEnv.set(java.lang.Object) and always succeeds.

        Specified by:
        setOpt in interface MutableEvalEnv
      • bindRecurse

        boolean bindRecurse​(Core.Pat pat,
                            Object argValue)