[julia-users] Re: mktemp doesn't accept anonymous function?

2016-10-19 Thread Ralph Smith
specifically: > mktemp(parent) Returns (path, io), where path is the path of a new >> temporary file in parent > > and io is an open file object for this path. > > >> so you would normally use the second entry (x in my example) in the function block. On Wednesday, October 19, 2016 at

[julia-users] Re: mktemp doesn't accept anonymous function?

2016-10-19 Thread Ralph Smith
mktemp returns a 2-tuple, so (at least in v0.5) julia> mktemp() do y,x println(y) end /tmp/tmpS63NPs julia> mktemp((y,x) -> println(y)) /tmp/tmpA2p0Y1 julia> On Wednesday, October 19, 2016 at 5:06:55 PM UTC-4, John Brock wrote: > > > > Am I doing something wrong or is this a