Problem :: Remove this from the Array | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Problem :: Remove this from the Array

I have created an array with same string , but the my problem is to remove the empty strings from the array. Example is here https://code.sololearn.com/cQ8aKJ2oA8uB/?ref=app

8th Jun 2018, 5:48 PM
Akash Pal
Akash Pal - avatar
2 Answers
+ 5
a = a-[""] Yes, indeed. This is Ruby we are talking about.
8th Jun 2018, 5:53 PM
Hatsy Rei
Hatsy Rei - avatar
+ 4
Thanks Hatsy Rei for the answer.
8th Jun 2018, 6:05 PM
Akash Pal
Akash Pal - avatar