Instead of using filter and map together to extract a list. We can also use flatMap
to save iterating
through the collections.
Since we're not reducing the array to a single item, flatMap
seems more natural than
reduce
.
I came across Scott Adams' financial advice. All simple, sensible advice covering mutual funds, credit cards and insurance. The only change it requires to work within the Indian context is, swapping 401K/IRA with National Pension System(NPS). Rest all hold good. But remember, simple is not easy.
- Make a will.
- Pay off your credit card balance.
- Get term life insurance if you have a family to support.
- Fund your company 401K to the maximum.
- Fund your IRA to the maximum.
- Buy a house if you want to live in a house and can afford it.
- Put six months’ expenses in a money market account.
- Take whatever is left over and invest it 70 percent in a stock index fund and 30 percent in a bond fund through any discount brokerage company and never touch it until retirement
- If any of this confuses you, or you have something special going on (retirement, college planning, tax issue), hire a fee-based financial planner, not one who charges you a percentage of your portfolio.
As said earlier, I've published v1.5.10
. If you haven't updated
it, update it
now.
For my new posts, Subscribe via weekly RSS, common RSS or Subscribe via Email