Arc Forumnew | comments | leaders | submitlogin
3 points by almkglor 3031 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 3031 days ago | link

That does sound like a dupe.

-----

2 points by pg 3030 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.

-----