Passing Arguments into an Inline Function
<p>I'd like to use an inline function with arguments to set a variable.  Here is a boiled down version (which apparently is only pseudo code at this point) of what I'm attempting:</p>

<pre><code>var something = 10;

var something_else = 15;

var dynamic_value = (function(something,something_else){
  if(something == something_else){
    return "x";
  }else{
    return "y";
  }
})();
</code></pre>

<p>In this case, "dynamic_value" should be "y".  The problem is that the variables "something" and "something_else" are never seen inside of this inline function.</p>

<p>How do you send arguments to an inline function?</p>

<p>edit: I'm using jquery, although that may not really apply to this question.</p>
