title: How to shorter SQL function
body: <p>Is it possible to shortner your SQL function like in C# or Java with lambda.</p>
  <pre><code>set serveroutput on;
  CREATE OR REPLACE
  FUNCTION Two(n IN INT) RETURN FLOAT AS
  s FLOAT;
  Begin
    s:=0;
    FOR i in 0..n LOOP
      s:=s+1 / POWER(2,i);
    END LOOP;
    
    return s;
  END Two;
  /
  Begin
    DBMS_OUTPUT.PUT_LINE(Two(2));
  END;
  /
  </code></pre>
  <p>This is how my functions looks like, I feel it's kind of long for the job it does.</p>
  <p>How could I shortner it ?</p>