haskell second largest element from list

前端 未结 0 837
我在风中等你
我在风中等你 2020-11-21 18:38

I have this function that returns the second largest value from given list:

import Data.List

secondL:: Ord a => [a] -> a
secondL xs = let x = head xs i         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题