This code will likely not do what you think it’s doing. The result from get_total_result will be discarded by tap. tap is used to perform side effects and returns its input unchanged (in this case, the result of elem(1)).
You can add a dbg() statement at the end of the pipeline and you’ll see what I mean/


















