Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement swap function (Bug #70736) #1609

Closed
wants to merge 1 commit into from
Closed

Implement swap function (Bug #70736) #1609

wants to merge 1 commit into from

Conversation

jerrygrey
Copy link

@michaeljs1990
Copy link

This seems like a unnecessary function. Outside of the simpleness of just using...

list($one, $two) = array($two, $one);

I looked around and can't find any other language with a built in function for this. Not that this is reason alone for exclusion it is a good heuristic that likely means this is not an issue and doesn't need to be solved.

@jerrygrey
Copy link
Author

@michaeljs1990 I wouldn't say using list() is simple, it is not really clear what is happening at a glance, but I agree that there isn't really a clear need for the function.

Plus, I have no clue why Travis is failing at the moment.

@jerrygrey jerrygrey closed this Dec 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants