You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have found that most of my cases where I need iterators can be solve with count.index and some math function given a length (modulo is quite useful!).
Given than signum returns 0 for 0 and 1 for every positive number, this means that the first one will have PRIMARY the rest will be FAILOVER. This pattern is quite useful for other resources as well.
The text was updated successfully, but these errors were encountered:
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
Apr 27, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have found that most of my cases where I need iterators can be solve with
count.index
and some math function given a length (modulo is quite useful!).signum can be useful in the following scenario:
Given than signum returns 0 for 0 and 1 for every positive number, this means that the first one will have
PRIMARY
the rest will beFAILOVER
. This pattern is quite useful for other resources as well.The text was updated successfully, but these errors were encountered: