collapse() when x has length zero #28
Closed
Comments
I think this was done deliberately to mimic paste(collapse = "", character())
#> "" But I could be easily swayed to return |
It is probably a good philosophy to always return 0 length outputs for 0 length inputs, so I will change this. |
Yeah I was looking to glue to save me from the behaviour of |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It feels like
collapse()
would be more consistent withglue()
(and more convenient) if it returnedcharacter(0)
if the input has length zero.The text was updated successfully, but these errors were encountered: