Example:
function example(txt; indent=true)
open(file, "w") do f
result = somefunc(f, txt; indent=indent)
return result
end
endJust a question: is it in julia valid to return within a do part or does this has problems with closing the file? Thanks
