4 ms·
Copy constructors are a much more common idiom in programming than taking a slice of an entire list.
by ajanuary 15y ago
Copy constructors are a much more common idiom in programming than taking a slice of an entire list.
- ajanuary 15y agoFor instance, Java, .NET, ruby, C++ STL and Objective C. Most languages use them. http://download.oracle.com/javase/1.4.2/docs/api/java/util/ArrayList.html#ArrayList(java.util.Collection) http://download.oracle.com/javase/1.4.2/docs/api/java/util/A... http://msdn.microsoft.com/en-us/library/fkbw11z0.aspx http://msdn.microsoft.com/en-us/library/fkbw11z0.aspx http://www.ruby-doc.org/core-1.9.3/Array.html http://www.ruby-doc.org/core-1.9.3/Array.html http://www.cplusplus.com/reference/stl/list/list/ http://www.cplusplus.com/reference/stl/list/list/ http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/NSArray.html http://developer.apple.com/library/mac/#documentation/Cocoa/...