Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[balsheet-pnl] refactor common account-balance-list adder
* use fold, more efficient, removes the need for intermediate list (map cdr (filter filter-fn accounts-balances)): filter will create 1 intermediate list, which is passed as an argument to map which creates the final list. using fold will remove the need for intermediate list. * list->vector for O(1) access
- Loading branch information
1 parent
def0caa
commit c21bb66
Showing
1 changed file
with
24 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters