Skip to content

Instantly share code, notes, and snippets.

@ggggggggg
Created October 2, 2013 21:22
Show Gist options
  • Save ggggggggg/6800716 to your computer and use it in GitHub Desktop.
Save ggggggggg/6800716 to your computer and use it in GitHub Desktop.
Making a list of names while assigning parts of an array
boollist = String[]
bool = ones(10,10)
macro newbool(name, value)
push!(boollist, repr(name)[2:end])
bool[length(boollist),:] = eval(value)
end
@newbool shoes rand(10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment