collections - Scala: List drop first n empty items -


i have list:

val arr = array("", "", "a", "b", "") 

i want apply method on arr, such output is:

array("a", "b", "") 

it's just

arr.dropwhile(_.isempty) 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -