Groovy web console

subscribe to the feed Subscribe
to this
site

validacao

Published 1 week ago by shinoda
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
 final List REFERRAL_CODE_BLOCK = ["FL", "FN"]

  List entry = ["BDL","FxN1","FxLx5"]

 def resp = entry.find {REFERRAL_CODE_BLOCK.find {prefix -> it.contains(prefix) } }

println resp