Package org.eolang

Class PhWrite

  • All Implemented Interfaces:
    Cloneable, Atom, Data, Phi, Term

    public final class PhWrite
    extends PhDefault
    implements Atom
    Object that writes other object to own \rho. (see EOorg.EOeolang.EOcage$EOnew and EOorg.EOeolang.EOmemory$EOalloc).
    Since:
    0.36.0
    • Constructor Detail

      • PhWrite

        public PhWrite​(Phi sigma,
                       String attr,
                       Function<Phi,​Phi> ret)
        Ctor.
        Parameters:
        sigma - Sigma
        attr - Attribute name
        ret - Return value function
    • Method Detail

      • lambda

        public Phi lambda()
        Description copied from interface: Atom
        Executes λ function and calculates object.
        Specified by:
        lambda in interface Atom
        Returns:
        Object calculated from λ function.