Remove duplicate `last` definition
Fix indexOf
Add compose to header