Function frequency: Difference between revisions

Content added Content deleted
(Added XPL0 example.)
m (→‎{{header|Wren}}: Minor tidy)
Line 2,202: Line 2,202:


In the absence of any other feasible approach, we simply search for method/function calls in a given Wren source file and count them to find the 'top ten'.
In the absence of any other feasible approach, we simply search for method/function calls in a given Wren source file and count them to find the 'top ten'.
<syntaxhighlight lang="ecmascript">import "io" for File
<syntaxhighlight lang="wren">import "io" for File
import "os" for Process
import "os" for Process
import "/pattern" for Pattern
import "./pattern" for Pattern
import "/set" for Bag
import "./set" for Bag
import "/sort" for Sort
import "./sort" for Sort
import "/fmt" for Fmt
import "./fmt" for Fmt


var args = Process.arguments
var args = Process.arguments