Abbreviations, automatic: Difference between revisions

m
→‎{{header|Erlang}}: small explanation of the list comprehension
(→‎{{header|erlang}}: some explanation.)
m (→‎{{header|Erlang}}: small explanation of the list comprehension)
Line 872:
uniq(_, L, Acc) ->
TempSet = sets:from_list( [string:substr(X,1,Acc) || X <- L] ),
% list of abbrevs, starting with substring 1,1: [string:substr(X,1,Acc) || X <- L]
TempSize = sets:size(TempSet),
if
Anonymous user