Post History
Ruby, 48 45 bytes ->w{([p].*w*''=~/$/).zip(*w.map(&:chars))*''} Try this online! It could be improved to 32 bytes, if every string is represented as an array of characters: ->w{([p]...
Answer
#3: Post edited
- # [Ruby](https://www.ruby-lang.org/), <del>48</del> 45 bytes
- ```ruby
- ->w{([p].*w*''=~/$/).zip(*w.map(&:chars))*''}
- ```
**[Try this online!](https://ato.pxeger.com/run?1=VZDRasIwFIbZbZ_iEMfaStXbIXRDVBAmVMS7rhdZk9ZgmpQ0beeke5HdCG4PtT3NYjvZBoH8h__7_wPn7V2VT_vjKfEfP0qdDG4_B4O7-uCEeTTs133b9l9H1yN3-MJyp18PM5w7N-N4i1XhusZtutDXVaBpocEHE5aKFB4WRU0VEGkB5KUuAPUOrdMYBHqHJGynqPmjwffhJ3cPdvBgwxjs-XodrO0GWVQQyzpvCUO0Y0IiD8VM0AwbkcmKURR5gHZxxpgUopKUZRSj6BKJJaGGTCVPWjBOpSScJr_EghnfvM2Wqq5ssWGdviDz55xjgbXZ0AL_5gs022MuU5islqZsWnLNqo7wUKDOpyNtdjYN9qXCPOZ6KxlOKwWYTPSKLc9l3V2Px-7_Bg)**
- # [Ruby](https://www.ruby-lang.org/), <del>48</del> 45 bytes
- ```ruby
- ->w{([p].*w*''=~/$/).zip(*w.map(&:chars))*''}
- ```
- **[Try this online!](https://ato.pxeger.com/run?1=VZDRasIwFIbZbZ_iEMfaStXbIXRDVBAmVMS7rhdZk9ZgmpQ0beeke5HdCG4PtT3NYjvZBoH8h__7_wPn7V2VT_vjKfEfP0qdDG4_B4O7-uCEeTTs133b9l9H1yN3-MJyp18PM5w7N-N4i1XhusZtutDXVaBpocEHE5aKFB4WRU0VEGkB5KUuAPUOrdMYBHqHJGynqPmjwffhJ3cPdvBgwxjs-XodrO0GWVQQyzpvCUO0Y0IiD8VM0AwbkcmKURR5gHZxxpgUopKUZRSj6BKJJaGGTCVPWjBOpSScJr_EghnfvM2Wqq5ssWGdviDz55xjgbXZ0AL_5gs022MuU5islqZsWnLNqo7wUKDOpyNtdjYN9qXCPOZ6KxlOKwWYTPSKLc9l3V2Px-7_Bg)**
- It could be improved to 32 bytes, if every string is represented as an array of characters:
- ```ruby
- ->w{([p].*w*''=~/$/).zip(*w)*''}
- ```
- [Attempt This Online!](https://ato.pxeger.com/run?1=fVJNa4NAEIUe_RXDpmAS8nEtBVtCEgg0YAjpyXrY6posUVd01aTB_pFeAm1_VPtr6rhhay-9PGdn3ps3D3z7SPPn4_k9sJ4-cxkMb75geFeeuk7ijvpl3zSt1_H1uDd64Um3X_bqRqV431ePkmUSLOSL1M8GNM5KloIvDIAklxmQzqmZVDUFOqfAaV5u1arBsuCiuwfTfjDhFsz5em2vzYoYLPYNA10cxyF7MgDCEWIEQdwBOMT722UIEQJV80hxayg0kxG3npG9F3Eu4rgQjEes5msrT4v8Cx9XbXU3RAjUFm8rhB-yoCVfKCcUNcINvnf6vLR1w2LDdyxlLfEcpweERFtRna-ppE4i1KBZNT8kIY2prCO11s2QcdTSUKuaNIAwQVghLFXQKda5pv_aFf-cgEJbx_N0ZKp7vrpzNrWPeUpDL5Q7wem2SIH6E7niy-Zw9Xedz-r7Aw)
#2: Post edited
# [Ruby](https://www.ruby-lang.org/), 48 bytes- ```ruby
->w{([p].*w*''=~/$/).zip(*w.map{_1.split''})*''}- ```
**[Try this online!](https://ato.pxeger.com/run?1=VZDRSsNAEEXxNV8xbIVtS5rqmwhRSlsoWEgpfYtB1uwmXbrJhs0msYb4I74U1I_Sr3GbWFQYmDvMuXdgXt9V8bg_vEXu_Ueho9HV58Xopqr7fhY4w2qIsfsyPh8PnGee9YeVk5Csfrh08kxwjXEzMEDT-b7OPM1yDS4Yv1Q0t0maV0wBlRZAVugcUK9uN41BoFdHfjsFzR8Nrgs_vlvA3h2Ga8Dz9dpb4wZZLKWWdbzi-2jHU4lsFPKUJcSIRJacocAGtAsTzmWalpLxhBEUnCyhpMyQsRRRC4axlFSw6JdYcLM3tdky1YUtNrzTJ2T-lAmSEm0utMC_-QTN9kTIGCarpQmbFkLzsiNs5KlwSxRtvbOpty8UEaHQW8lJXCogdKJXfHkM6_56OHT9Gw)**
- # [Ruby](https://www.ruby-lang.org/), <del>48</del> 45 bytes
- ```ruby
- ->w{([p].*w*''=~/$/).zip(*w.map(&:chars))*''}
- ```
- **[Try this online!](https://ato.pxeger.com/run?1=VZDRasIwFIbZbZ_iEMfaStXbIXRDVBAmVMS7rhdZk9ZgmpQ0beeke5HdCG4PtT3NYjvZBoH8h__7_wPn7V2VT_vjKfEfP0qdDG4_B4O7-uCEeTTs133b9l9H1yN3-MJyp18PM5w7N-N4i1XhusZtutDXVaBpocEHE5aKFB4WRU0VEGkB5KUuAPUOrdMYBHqHJGynqPmjwffhJ3cPdvBgwxjs-XodrO0GWVQQyzpvCUO0Y0IiD8VM0AwbkcmKURR5gHZxxpgUopKUZRSj6BKJJaGGTCVPWjBOpSScJr_EghnfvM2Wqq5ssWGdviDz55xjgbXZ0AL_5gs022MuU5islqZsWnLNqo7wUKDOpyNtdjYN9qXCPOZ6KxlOKwWYTPSKLc9l3V2Px-7_Bg)**
#1: Initial revision
# [Ruby](https://www.ruby-lang.org/), 48 bytes ```ruby ->w{([p].*w*''=~/$/).zip(*w.map{_1.split''})*''} ``` **[Try this online!](https://ato.pxeger.com/run?1=VZDRSsNAEEXxNV8xbIVtS5rqmwhRSlsoWEgpfYtB1uwmXbrJhs0msYb4I74U1I_Sr3GbWFQYmDvMuXdgXt9V8bg_vEXu_Ueho9HV58Xopqr7fhY4w2qIsfsyPh8PnGee9YeVk5Csfrh08kxwjXEzMEDT-b7OPM1yDS4Yv1Q0t0maV0wBlRZAVugcUK9uN41BoFdHfjsFzR8Nrgs_vlvA3h2Ga8Dz9dpb4wZZLKWWdbzi-2jHU4lsFPKUJcSIRJacocAGtAsTzmWalpLxhBEUnCyhpMyQsRRRC4axlFSw6JdYcLM3tdky1YUtNrzTJ2T-lAmSEm0utMC_-QTN9kTIGCarpQmbFkLzsiNs5KlwSxRtvbOpty8UEaHQW8lJXCogdKJXfHkM6_56OHT9Gw)**