[thelist] Looping Psuedocode
Anthony Baratta
Anthony at Baratta.com
Thu Aug 28 10:48:01 CDT 2003
At 06:10 AM 8/28/2003, Rob Smith wrote:
>Hi,
>
>I've struggled with this for quite some time now and still haven't found the
>best approach to this. Basically I want to see some Psuedocode that solves:
>
> from :: to ::
> Item A Item A
> Item A Item B
> Item A Item C
> Item B
> Item B
> Item B
> Item B
> Item C
> Item C
How's this??
$Temp = ""
for each $Item in @List
if $Temp != $Item
print $Item
$Temp = $Item
end if
next
---
Anthony Baratta
President
Keyboard Jockeys
"Conformity is the refuge of the unimaginative."
More information about the thelist
mailing list