Inserting Blank Lists
- To: mathgroup at smc.vnet.net
- Subject: [mg68231] Inserting Blank Lists
- From: Bruce Colletti <vze269bv at verizon.net>
- Date: Sun, 30 Jul 2006 04:47:54 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Re Mathematica 5.2. The code below inserts a null list between L-elements: L={{"a","b"},{"c","d"},{"e","f"}}; Most@Flatten[Map[{#,{}}&,L],1] Out[9]= {{a,b},{},{c,d},{},{e,f}} What is a shorter way to do this? Thankx. Bruce
- Follow-Ups:
- Re: Inserting Blank Lists
- From: Adriano Pascoletti <pascolet@dimi.uniud.it>
- Re: Inserting Blank Lists