title: Flow chart - recursion
body: <p>I want to create a flow chart for a recursion function. But the problem is there are two lines of code that call the function and cause a recursion.
  In the code it might look straightforward</p>
  <pre><code>function(array):
    if (base case) do: // base case check
       return
    if (array.length &gt; 1) do:
       function(array= elements from 1 to array.length/2) // first call 
       function(array= elements from array.length/2 to array.length) // second call
  </code></pre>
  <p>but I am not sure how to show this in flow chart
  I thought of doing something like this:</p>
  <p><a href="https://i.stack.imgur.com/XCniR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XCniR.png" alt="enter image description here" /></a></p>
  <p>it doesn't look like there is an order of the calls and in general I don't know what to show if the array.length check (the second check) is false</p>
  <p>by the way I am using <a href="https://app.diagrams.net/" rel="nofollow noreferrer">https://app.diagrams.net/</a></p>