When I try to use a filter to restrict the files I am looking at in a directory using
let InputDir = try! FileManager.defaultManager.contentsOfDirectory(atPath: tPath.stringValue)
let txtFiles = InputDir.filter( $0.pathExtension == “txt”)
I get the error ‘No anonymous method is in scope’ with $0 on the second line highlighted
This works fine in native Swift, is the syntax different in Silver?