flat vs flatter
Posted: Fri Aug 19, 2005 10:17 pm
Hi Lutz,
Following the logic on 'flat making a nested list flat a simple list could
become even flatter... i.e.
(flat '( (1 2 3 4 5) )) will always become ( 1 2 3 4 5 )
where a (flat (1 2 3 4 5)) will always return ( 1 2 3 4 5 )
what about making flat fatting? a single list?
(flat '( 1 2 3 4 5) ) would then return 1 2 3 4 5 or
(flat (flat ' ( (1234) '(5) ))) would be 1 2 3 4 5
-- or just 12345 --
It would make life earier mixing Atoms with lists...
how about it ?
Regards, Norman
Following the logic on 'flat making a nested list flat a simple list could
become even flatter... i.e.
(flat '( (1 2 3 4 5) )) will always become ( 1 2 3 4 5 )
where a (flat (1 2 3 4 5)) will always return ( 1 2 3 4 5 )
what about making flat fatting? a single list?
(flat '( 1 2 3 4 5) ) would then return 1 2 3 4 5 or
(flat (flat ' ( (1234) '(5) ))) would be 1 2 3 4 5
-- or just 12345 --
It would make life earier mixing Atoms with lists...
how about it ?
Regards, Norman