2 ms·
> * NonEmptyList - I never came across a palce where I needed NonEmptyList?! Do you ever check the length of a list before applying a computation or dispatch b
by codygman 10y ago
> * NonEmptyList - I never came across a palce where I needed NonEmptyList?!
Do you ever check the length of a list before applying a computation or dispatch based on a result list?
- merb 10y agoBasically we sometimes do. But all of that code is basically coming from either the database where we need to construct a list (which could be empty). Or it's coming from the user. I guess we have something like 30 occurences of .isEmpty/.nonEmpty in one of our codebases