Structural typing saves line of code

Have you got a path-like object that defines a method with an arcane, unpronounceable symbol (the lexical libertines call it a “forward slash”, a reference to erotic fanfic most likely), and which returns an object of the same type? Pass it to indexFile, to get back an index file!

Works with dispatch.Request and sbt.Path.

}

blog comments powered by Disqus