public static function process(array $docs)
    {
        return self::flatmap(function ($doc) {
            return self::flatmap(function ($tag) {
                return self::flatmap(function ($type) {
                    return self::processType($type);
                }, self::processTag($tag));
            }, $doc->getTags());
        }, $docs);
    }