For neo12 - using an array to count unique elements in a sequence.
Posted to
tcl
by kbk at Thu Feb 11 16:42:54 GMT 2010
view raw
%
foreach
value {foo bar grill bar grill grill foo foo} {
incr
count(
$value
)
}
% parray count
count(bar) = 2
count(foo) = 3
count(grill) = 3
Recent Posts
junk by bcharder
31 days ago
tcl by egavilan
40 days ago
tcl by Stu
42 days ago
tcl by Stu
42 days ago
tcl by oldlaptop
75 days ago
tcl by oldlaptop
75 days ago
tcl by Molnija Bjornsson
80 days ago
tcl by Molnija Bjornsson
80 days ago
tcl by zmoment
80 days ago
tcl by zmoment
80 days ago
Submit
New paste
Documentation
From Jabber