cmatrix.find_seq

cmatrix.find_seq()

Search a sequence into the parameter list. This is the first naïve step of the algorithm.

Parameters

type

Description

liste

list

The raw data to treat as list

Returns
list

A list containing the sequence repeated from the begining to the end if found

Examples

>>> find_seq([1,2,3,1,2,3,1,2,3])
[1, 2, 3]