def flatten_parameters_to_string(l)
    if l.respond_to? :each
        val =  l.flatten.join(",")
    end
    #puts "val", val
    return val
end

def flatten_parameters_to_string(l)
    #flatten is recursive in ruby
    if l.respond_to? :each
        val =  l.flatten.join(",")
        return val
    else
       return l;
    end
end


Fix for return of function
Fix for return of function

Make it so function would return value if passed non-iterable
Add comment to explain flatten in ruby is recursive
