Friday, April 7, 2017

the assignments

get the assignments get the new list

<textarea id="bga20170407f1331"></textarea>

<a href="javascript:bga20170407f1331('get the assignments')">get the assignments</a>

<a href="javascript:bga20170407f1331('get the new list')">get the new list</a>



function gettheassignments() {

going through the assignments list one assignment at a time
1) get the symbol
2) var arrayofhistories = []
3) if the symbol has not been added to the array of histories
          a) create an element for the symbol
          b) add the first assignment to it
     if the symbol has already been added to the array of histories
           add the assignment to the history
3) A) a) A history is an array.
          b) To get the symbol we would get the first element in that array, and extract the symbol
          c) To find a history we would
                 1) inspect each element in the arrayofhistories
                 2) get its symbol
                 3) if the symbol is a match, return the history array
          d) Since we now have the history array we can add an assignment record to it

No comments:

Post a Comment