Jump to content

Multiple distinct objects: Difference between revisions

added c#
(Undo revision 33220 by Glennj (Talk) - not inherently OO; e.g. applies to Haskell, C)
(added c#)
Line 119:
</lang>
Of course, also in this case one can use the other sequence containers or plain new/delete instead of <tt>vector</tt>.
 
=={{header|C sharp|C#}}==
 
<lang chsarp>List<Foo> foos = Enumerable.Range(1,10).Select(x => new Foo()).ToList();</lang>
 
=={{header|Common Lisp}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.