more examples in the readme

This commit is contained in:
Tyrel Souza 2014-10-30 14:32:39 -04:00
parent 53b081bc75
commit 298674c83b

View File

@ -8,10 +8,14 @@ any number of things together
>>> print glue("any","number","of","things","together",where="anywhere") >>> print glue("any","number","of","things","together",where="anywhere")
any number of things together anywhere any number of things together anywhere
>>> print glue("any","number","of","things","together", "even",["nested","lists"]]) >>> print glue("any","number","of","things","together",["even",["nested","lists"]])
any number of things together even nested lists any number of things together even nested lists
>>> print glue("any","number","of","things","together", ["even",["nested","lists"]], "and numbers", 12345)
any number of things together even nested lists and numbers 12345
``` ```
#Protip #Protip
You should probably just use [str.join](https://docs.python.org/2/library/stdtypes.html#str.join) as this is satire. You should probably just use [str.join](https://docs.python.org/2/library/stdtypes.html#str.join) as this is satire.