A JVM library to compare two lists, l1
and l1
, of objects of any kind.
Use the ListDiff
class to find:
l1
and l2
)l1
and l2
)l1
l2
l1
and l2
edu.holycross.shot
, package listutils
, available from the repository at http://beta.hpcc.uh.edu/nexus/content/groups/publicGroovy scripts with a grapes dependency on listutils
to apply LCS and SCS to sequences of characters in two strings:
Examples:
groovy lcs.groovy 'Dr Rock-and-Roll Star' 'Doctor Rock Star'
prints
Dr Rock Star
while
groovy scs.groovy 'Dr Rock-and-Roll Star' 'Doctor Rock Star'
prints
Doctor Rock-and-Roll Star