Can someone explain what the syntax means when defining a jQuery plugin?
<p>I am reading up on creating custom jQuery plugins and am a little confused as to the meaning of the following syntax:</p>

<pre><code>(function($){  
    $.fn.truncate = function() {  
        return this.each(function() { 
        });
     };
})(jQuery);
</code></pre>

<p>I understand that function($) is an anonymous function that accepts the $. I just don't quite understand why this function is wrapped in brackets and how the following sets of brackets with jQuery in them...work. </p>
