In the following link:
https://stackoverflow.com/a/70667161/17826267
@SaturnPro asked an excellent question and @Dmytro Rostopira had a great answer using Completer as a relatively easy solution, but I was confused by part of the answer:
"Disclaimer: while this will solve your problem, it's far away from good practice, you should split your function into two different ones"
How would one use two functions to solve the issue @SaturnPro was facing?