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

Fix for return of function
user
```ruby
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

```
assistant