Include 0 in NPS enumerate
This commit is contained in:
parent
5b225e7fe0
commit
d0d2d9f5c2
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@
|
|||
(defun nps-enumerate (data)
|
||||
(check-type data list)
|
||||
(unless data (error "Empty DATA list."))
|
||||
(let ((clean-data (remove-if (lambda (x) (or (> x 10) (< x 1))) data)))
|
||||
(let ((clean-data (remove-if (lambda (x) (or (> x 10) (< x 0))) data)))
|
||||
(loop :for score :in clean-data
|
||||
:counting (>= score 9) :into promoters
|
||||
:counting (<= score 6) :into detractors
|
||||
|
|
Loading…
Add table
Reference in a new issue