0

How do I refactor this mess of if/else conditions so that it's more readable?
( Reverse_Path = [[]] -> Child = [c(New_Score,G1,Pos),P]
; otherwise -> Child = [c(New_Score,G1,Pos),P|Reverse_Path]
),
( memberchk(Child,NewAgenda) -> addChildren(Others,Reverse_Path,Current,NewAgen...