.splitn(..)
RS-W1047Prefer using .split(..)
over .splitn(..)
when possible, to reduce code complexity. .splitn(..).next()
is equivalent to .split(..).next()
.
Replace the call to .splitn(..).next()
with .split(..).next()
.
"Mary had a little lambda".splitn(2, ' ').next();
"Mary had a little lambda".split(' ').next();