public class jDrop extends JFunctorImpl
$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
args, executed, result, type
Constructor and Description |
---|
jDrop() |
Modifier and Type | Method and Description |
---|---|
Object |
execute() |
protected String |
getStringArg(int index) |
addArg, addArg, addArg, addArg, addArg, addArg, checkArgs, checkArgs, clearState, getArgs, getBooleanResult, getIntResult, getListResult, getName, getResult, getStringResult, isExecuted, reset, toJSON, toString
Copyright © 2019. All Rights Reserved.