結果:
map (\l@(x:xs) -> (x,length l)) 。group 。sort $ [1,1,1,1,2,2,2,2,3,3,2,2,2,5,6,7]
<interactive>:1:33: Not in scope: `。'
<interactive>:1:40: Not in scope: `。'
ps:
俺都是将输入法配置成全部标点只用半角的,,,
--
人生苦短, Pythonic! 冗余不做,日子甭过!备份不做,十恶不赦!
俺: http://about.me/zoom.quiet
文字协议: http://creativecommons.org/licenses/by-sa/2.5/cn/