
Code takes up more lines, but less width, which is neither here nor there. Yes, this approach to method chain formatting may seem a bit extreme - but I find it very clean and consistent. what I guess I'm starting to settle on around formatting and indentation: Here's an example of my program running with the above input:Ġ. each first name, last name, and email is a separate token, and the values are lists of indices of entries that contain that token. You're supposed to create an inverted index, basically a Map> where the key are tokens extracted from the entries, i.e. Given a list of strings that represent entries in a phone book (one entry per line)


I've been working on one of the Kotlin projects at, Simple Search Engine, and the second to last stage has a bit of a challenging requirement to create an inverted index.
