Skip to content

added functions for Sequential Date Generator and Sequential String Generation from Array #166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yashtyagi-yb
Copy link

I have added 3 functions as follows :

  • CyclicSeqDateGen : This function takes 2 parameters [startYear, endYear]. It sequentially generates all the dates between the provided years and then repeats the same sequence endlessly.

  • CyclicSeqDateGenWithRep : This function takes 3 parameters [startYear, endYear, threshold]. It sequentially generates all the dates between the provided years and then repeats the same sequence endlessly till threshold is met. After completing 'threshold' number of days it resets and repeats the sequence.

  • SeqStringGenFromArray : This function requires an array of strings and returns them in a cyclic sequential manner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant