Riffle[] accepts only lists. Why?
- To: mathgroup at smc.vnet.net
- Subject: [mg81895] Riffle[] accepts only lists. Why?
- From: Szabolcs Horvát <szhorvat at gmail.com>
- Date: Sat, 6 Oct 2007 04:35:44 -0400 (EDT)
Why does Riffle[] accept only lists as its first argument? All other list-manipulation functions, like Append[], Insert[], Cases[] etc. work on all kinds of expressions, not just lists. This seems like an unnecessary restriction on Riffle[]. Szabolcs