How might you build a function in #scala to flatten a list recursively? List[List[.... => List[T]: https://gist.github.com/johnynek/2ad3519ca47980ed5e75e7dbc73244d3 …
shouldn't the fallback be composing flattener with flattener? Otherwise how do you get more than 3 deep?
-
-
I didn't check more than 3 deep, but the implicit search starts again. If should be like a cons-cell: gluing one more layer on.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.