Warning! The page was not fully loaded, probably because of a network issue. It could be that not all functionalities work as expected. Please try reloading the page.
Transform a nested list to a flattened list. Hint, lookup the predicate is_list/1.
?-my_flatten([a,[b,[c,d],e]],X).X=[a,b,c,d,e]
It is sufficient if your code works as demonstrated above, with a list as first parameter.