kyu_6.unique_in_order package

Submodules

kyu_6.unique_in_order.test_unique_in_order module

class kyu_6.unique_in_order.test_unique_in_order.UniqueInOrderTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

Testing the ‘unique_in_order’ function

test_unique_in_order()[source]

Testing the ‘unique_in_order’ function with various test data :return:

kyu_6.unique_in_order.unique_in_order module

kyu_6.unique_in_order.unique_in_order.unique_in_order(iterable: Iterable) → list[source]

Takes as argument a sequence and returns a list of items without any elements with the same value next to each other and preserving the original order of elements. :param iterable: :return:

Module contents