mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[investment-lots] use higher order functions, instead of lambdas
This commit is contained in:
parent
6907d772d4
commit
d928ed4ada
@ -1855,9 +1855,7 @@
|
|||||||
(gnc:html-chart-add-data-series!
|
(gnc:html-chart-add-data-series!
|
||||||
chart
|
chart
|
||||||
(account->name account)
|
(account->name account)
|
||||||
(map (lambda (value)
|
(map (compose gnc:gnc-monetary-amount value->monetary) gain-values)
|
||||||
(gnc:gnc-monetary-amount (value->monetary value)))
|
|
||||||
gain-values)
|
|
||||||
(car colors))
|
(car colors))
|
||||||
(set! colors (cdr colors)))))
|
(set! colors (cdr colors)))))
|
||||||
|
|
||||||
@ -2000,9 +1998,7 @@
|
|||||||
(gnc:html-chart-set-stacking?! chart
|
(gnc:html-chart-set-stacking?! chart
|
||||||
(eq? chart-type 'bar-stacked)))))
|
(eq? chart-type 'bar-stacked)))))
|
||||||
|
|
||||||
(for-each
|
(for-each add-account-report accounts)
|
||||||
(lambda (account) (add-account-report account))
|
|
||||||
accounts)
|
|
||||||
|
|
||||||
(add-padding-rows 3)
|
(add-padding-rows 3)
|
||||||
(gnc:html-table-append-ruler! table column-count)
|
(gnc:html-table-append-ruler! table column-count)
|
||||||
|
Loading…
Reference in New Issue
Block a user