0

All substrings
code-golfsequencesubsequenceopen-ended-function
Make a program that outputs a sequence of integers so that every finite sequence of positive integers is a substring (continuos subsequence) of the output.
For example, the following sequence satisfies the rules:
1,1,1,2,1,1,1,1,2,2,1...