-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
English list constructor #177
Comments
But wait! This is a pain in the butt! The original case (see http://seltani.shoutwiki.com/wiki/Act_on_Another_Player) is a list of links. Each entry is a set of link(), print(), endlink() calls. We can't do that without generators or lambdas. I guess we could pass in a list of texts constructed like |
Maybe a form |
Less terrible: a generator.
|
Already, a Seltani user could do markup concatenation, right? Build a list of strings containing well-balanced markup, pass it in, and get back a string containing well-balanced markup. Then pass that to |
You can do that, but it's error-prone -- you have to escape square brackets in your strings. Anyhow I think it's more effort than the naive solution of a messy if statement in your loop. |
How about a generator that yields both the object and the separator, so you can go:
|
That's nice, but I think it should be covered by zip(). |
Convenience function: given a bunch of strings (or texts), glue them together with commas and "and". Or "or".
This will have to stream (like print()) rather than returning a text. Oh well.
The text was updated successfully, but these errors were encountered: