I might watch them sometime . <| sep |> these just started for me , too ! one was simple , I literally was just laboring sitting on a set of stairs , but in my postThanksgiving haze nap yesterday , my brain dreamed it was giving birth to twins at home without assistance and then my husband wouldn ' t deliver the placentas and just wandered off to check hi phone . Nothing too traumatic at least , but DH got in trouble for existing in my head . I did have one birth dream in the 2 nd tri where I basically gave birth to a dying skeleton and that was awful ! <| sep |> Took a quick wack at it . Would reaction some refactoring of the chemicalreaction 2 checmialreactionx , y function to return a tuple with success , result or fail , result . # sorts , get all possible sets , and start off the round of reaction defp chemicalreactionx , y , z do sortingrsx , y , z permutationsfor chemicalreaction end # if all possible sets have been tried , return all three chemicals defp chemicalreactionchem 1 , chem 2 , chem 3 , do chem 1 , chem 2 , chem 3 # try first set , if successful , return the reaction of result , else try the next set defp chemicalreactionchem 1 , chem 2 , chem 3 rest do case chemicalreactionchem 1 , chem 2 do success , result chemicalreactionresult , chem 3 fail , chemicalreactionrest end end # all permutations of chemicals defp permutationsfora , b , c do a , b , c , a , c , b , b , c , a end