This is one usecase I see a lot common these days, where we want to iterate over items in a list and invoke some method. The current syntax allows us to do this by the following pattern:
const newArray = array.map(item => item.someMethod())
My proposal is to create new operator
& to replace the common boilerplate part and introduce the pattern such as following:
const newArray = array.map(&.someMethod())
This will reduce some cognitive complexity and thus improving developer productivity, and reduce a good amount of bundle size.
PS: This is my first post here. Please let me know if I am missing something in the process. Thanks.