Class jDrop

  • All Implemented Interfaces:
    JFunctor, JMetaMetaFunctor, JSONFunctor, Serializable

    public class jDrop
    extends JFunctorImpl
    $drop[A,B] removes A from B and returns the rest, e.g.
     $drop["@bigstate.edu","bob@bigstate.edu"]
     
    would return the string "bob". This is very useful for dropping things from the ends of string. If A is not a substring of B then nothing happens. E.g. drop "abcdf" from "abc" has no effect (so watch the order of your arguments.) Also, this removes all occurances, so removing "ab" from abcabc returns cc.

    Created by Jeff Gaynor
    on 4/23/18 at 4:47 PM

    See Also:
    Serialized Form
    • Constructor Detail

      • jDrop

        public jDrop()
    • Method Detail

      • getStringArg

        protected String getStringArg​(int index)
      • execute

        public Object execute()