package cs2030s.fp; /** * Represent a container that can transforms its content to produce another container containing the immutated element, possible of different types. * CS2030S Lab 5 * AY22/23 Semester 1 * * @param The type of the content. */ public interface Immutatorable { /** * The method to produce another container with immutated element. * * @param f The immutator. * @return A new container containing the immutated element. */ Immutatorable transform(Immutator f); }