Ellen Spertus
02/24/2020, 11:49 PMSet<String> containing all of the words in the file. Is there a way to map or flatMap over the lines of a file? I’ve gotten as far as bufferedReader().useLines().deactivateduser
02/25/2020, 12:00 AMEllen Spertus
02/25/2020, 12:05 AMreadText(). Thank you. Unfortunately, I oversimplified my problem: I need to remove lines that, when trimmed, start with #. Maybe I could see how readText() is written and write my own version.Ellen Spertus
02/25/2020, 12:08 AMreadLines() returns a List<String>. I can deal with that.deactivateduser
02/25/2020, 12:11 AMEllen Spertus
02/25/2020, 12:12 AMEllen Spertus
02/25/2020, 12:16 AMEllen Spertus
02/25/2020, 12:17 AMdeactivateduser
02/25/2020, 12:18 AMSebastian Aigner
02/25/2020, 4:15 AMif-else statement by using filterNot, like in this example implementation which has the same behavior: https://pl.kotl.in/nFO6cvPUUEllen Spertus
02/25/2020, 4:15 PM