fork download
  1.  
  2.  
  3. main = let xs = [[-4,1,3],[-1,-pi,-2.3],[4,4356,0]]
  4. in print $ zipWith (\x -> subtract 1 . length . dropWhile (/=x)) (f xs) xs
Success #stdin #stdout 0s 4688KB
stdin
Standard input is empty
stdout
[2,1,0]