Transform with Lisp
One of kakei's most powerful features is the ability to transform and analyze your transaction data using Lisp expressions.
View All Transactions
kakei transform --program "table"
The table variable contains all your transactions as a Lisp data structure.
Group by Category
See spending broken down by category:
kakei transform --program "(group-by table (lambda (pair) (cdr (assoc 'category (cdr pair)))))"
Group by Account
See transactions grouped by account:
kakei transform --program "(group-by table (lambda (pair) (cdr (assoc 'account (cdr pair)))))"
Get First Transaction
kakei transform --program "(cons (car table) ())"
Skip First Transaction
kakei transform --program "(cdr table)"
Get First Two Transactions
kakei transform --program "(cons (car table) (cons (car (cdr table)) ()))"