My goal is to convert list into array using split method then remove element(depends) from it and turning back again array into string using join.
My goal is to convert list into array using split method then remove element(depends)
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This does the job:
This just removes “b” from the list, but you can adapt the
{|elem|...}block for your needs. Just return false to remove an element.