Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Wow, scala really is pretty when David shows it like that. I like the new "point free" style syntax (I think that i fairly new).

messageViewers = messageViewers.remove(_ == who)

(so it creates a new list excluding items that are == to "who"). Nice.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: