fork download
  1. main = do
  2. print$ f[1,2,3,3,3]
  3. print$ f[3,3]
  4.  
  5.  
  6.  
  7. f s|x<-(==last s)=x.length.fst.span x.reverse$s
Success #stdin #stdout 0s 4700KB
stdin
Standard input is empty
stdout
True
False