title: How to freeze an array in swift?
body: <p>In js I can <strong>freeze</strong> an array after adding some elements to an array.
  Is there anything to freeze an array in <em>Swift</em>?</p>
  
  <blockquote>
    <p>What is freezing?</p>
    
    <p>Ans: Suppose we have an array. We add some elements
    to that array.</p>
  </blockquote>
  
  <pre><code>/* This is javascript code */
  var fruits = ["Banana", "Orange", "Apple", "Mango"];
  fruits.push("Kiwi");
  // fruits contains some elements
  
  // Now freeze fruits. After freezing, no one can add, delete, modify this array.
  Object.freeze(fruits);
  </code></pre>
  
  <p>My question is here - <strong>"Is there anything in swift where we can freeze an array?"</strong></p>