Jump to content

Array Initialization: Difference between revisions

(→‎E: deleting, content moved to Creating an Array#E)
(→‎Common Lisp: Migrated)
Line 105:
std::vector v4 = v3; // v4 is a copy of v3
</lang>
 
==[[Common Lisp]]==
 
<lang lisp>; Makes an array of 20 objects initialized to nil
(make-array 20 :initial-element nil) </lang>
 
<lang lisp>; Makes a 2-dimensional array of 2x3 initialized to the string "cool"
(make-array '(2 3) :initial-element "cool")</lang>
 
<lang lisp>; Makes a resizable array initialized to 'T
(make-array '(10 20) :initial-element t :adjustable t)</lang>
 
==[[D]]==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.