Arc Forum
new
|
comments
|
leaders
|
submit
login
3 points
by
almkglor
6267 days ago |
link
|
parent
Here's another pair: 'split and 'splitn. The only apparent difference is order of arguments - 'split expects the list first, while 'splitn expects the number first. Both functions cannot handle strings.
2 points
by
pg
6267 days ago |
link
That does sound like a dupe.
-----
2 points
by
pg
6267 days ago |
link
Actually they're not the same: split is destructive.
However, the one use of splitn doesn't need to be nondestructive, so I'm getting rid of it.
-----