You probably want beginswith, which was recently renamed to startswith but only in Julia 0.4. (Make sure you look at the appropriate docs <http://julia.readthedocs.org/en/release-0.3/stdlib/strings/> for Julia 0.3; there's a version selector in the bottom right.) You can also use the Compat package, which makes startswith available on Julia 0.3.
On Friday, January 9, 2015 at 1:44:29 PM UTC-5, Tim Wheeler wrote: > > When I try to use the "startswith > <http://julia.readthedocs.org/en/latest/stdlib/strings/>" function Julia > cannot locate it. "endswith" seems to work fine. Am I doing something wrong? > > Thanks! > > _ _ _(_)_ | A fresh approach to technical computing > (_) | (_) (_) | Documentation: http://docs.julialang.org > _ _ _| |_ __ _ | Type "help()" for help. > | | | | | | |/ _` | | > | | |_| | | | (_| | | Version 0.3.4 (2014-10-21 20:18 UTC) > _/ |\__'_|_|_|\__'_| | Official http://julialang.org release > |__/ | x86_64-linux-gnu > > julia> startswith("asdfas", "asd") > ERROR: startswith not defined > > julia> startswith > ERROR: startswith not defined > > julia> endswith("blah", "ah") > true >
