mattjgalloway / cgtcalc

A UK capital gains tax calculator written in Swift
MIT License
94 stars 16 forks source link

Modernize the code for grouping transactions by asset name #4

Closed sodastsai closed 3 years ago

sodastsai commented 3 years ago

Using "Key Path Expressions" (\.asset) to filter, map, etc is supported via SE-0249 in Swift 5.2 (This project seems using Swift 5.2, in Package.swift)

This change also uses Dictionary.init(grouping:by:)