feature extraction with scalaz-stream