It appears to maybe just be an error in the documentation, I was able to get the example to work by parsing the string first.
zipper =
"""
if true do
10
end
"""
|> Sourceror.parse_string!()
|> Sourceror.Zipper.zip()
It appears to maybe just be an error in the documentation, I was able to get the example to work by parsing the string first.
zipper =
"""
if true do
10
end
"""
|> Sourceror.parse_string!()
|> Sourceror.Zipper.zip()