Skip to content
This repository was archived by the owner on Oct 26, 2022. It is now read-only.

Changed for loop to foreach to avoid syntax error in Julia 0.5 and later #23

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/string_manipulation.jl
Original file line number Diff line number Diff line change
@@ -44,7 +44,7 @@ println(r)

# [eachmatch](http://julia.readthedocs.org/en/latest/stdlib/base/#Base.eachmatch) returns an iterator over all the matches
r = eachmatch(r"[\w]{4,}", s1)
for(i in r) print("\"$(i.match)\" ") end
foreach(i -> print("\"$(i.match)\" "), r)
println()
#> "quick" "brown" "jumps" "over" "lazy"