Isn't the trend to use CharSequence instead of String?  If it's startsWith, 
shouldn't the signature be startsWith(String one, String two, String... more) 
to avoid zero params and conflict with 1 param built-in method?

Couldn't this be just as easily expressed using the any DGM?

['prefix1', 'prefix2', ...].any { string.startsWith(it) }

Reply via email to