- October 21st, 2016:
You have l1 :: [(v, [(k, x)])]
You need the transformation l2 :: [(k, [(v, x)])]
Redistribute v and k in one line
Props for elegance - Francisco T @aiceou redist xs = fromListWith (++) $ concat $ (map f xs) where f (a,ys) = map (\(x,y) -> (x,[(a,y)])) ys ... but k has to be 'Ord'
Incorporates strong typing over predicate logic programming, and, conversely, incorporates predicate logic programming into strongly typed functional languages. The style of predicate logic is from Prolog; the strongly typed functional language is Haskell.
Saturday, December 10, 2016
October 2016 1Liner 1HaskellADay problem and solutions
Subscribe to:
Post Comments (Atom)
1 comment:
This blog giving the details of technology. This gives the details about working with the business processes and change the way. Here explains think different and work different then provide the better output. Thanks for this blog.
Back to Original Services Private Limited
Post a Comment