-Initial dose: 10 mg orally once a day, as needed, approximately 60 minutes before sexual activity. Increase to 20 mg or decrease to 5 mg based on efficacy and tolerability.
-Maximum dose: 20 mg once a day
Patients on stable alpha blocker therapy:
-Initial dose: 5 mg orally once a day
-Sexual stimulation is required for a response to treatment.
-A time interval between dosing should be considered when administering this drug concomitantly with alpha-blockers.
Use: Erectile dysfunction
A pure function is a specific kind of value-producing function that not only has no side effects but also doesn’t rely on side effects from other code—for example, it doesn’t read global variables that are occasionally changed by other code. A pure function has the pleasant property that, when called with the same arguments, it always produces the same value (and doesn’t do anything else). This makes it easy to reason about. A call to such a function can be mentally substituted by its result, without changing the meaning of the code. When you are not sure that a pure function is working correctly, you can test it by simply calling it, and know that if it works in that context, it will work in any context. Nonpure functions might return different values based on all kinds of factors and have side effects that might be hard to test and think about.