#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from librip.generators import random_generator
from librip.generators import infinite
from librip.iterators import Unique
data1 = [1, 1, 1, 1, 1, 2, 2, 2, 2, 2]
data2 = random_generator(1, 3, 10)
data3 = ['a', 'A', 'b', 'B']
data4 = ['Aab', 'aAB', 'BBB', 'bbb', 'bbb']

# Реализация задания 2
print(list(Unique(data4, ignore_case=False)))
print(list(Unique(data3, ignore_case=True)))
print(list(Unique(data2, ignore_case=True)))
print(list(Unique(data1, ignore_case=True)))
count = 0
for x in Unique(infinite()):
    if count < 20:
        print(x)
        count += 1
    else:
        break


