"Equilizing" list

From: B.r.K.o.N.j.A. (thebrkonja_at_inet.hr)
Date: 12/04/03


Date: Thu, 4 Dec 2003 14:16:04 +0100

I've been struglin' with this one for a few hours now...please help.

I need to write a program which "equilizes" a list structure whose atoms can
be other lists

equilize([a,[b,c],[[[d]]],e],[a,b,c,d,e]). should return yes...

Please help, my head is about to explode (I've been a "normal"-procedural
programmer for years, so this "declatative" approach is something quite
awkward for me)

Thanks for your replies...