Open gampleman opened 7 years ago
Given:
example xs = List.map (\a -> a * 2) xs
when doing a lift to let on the lambda this currently results in
example xs = let var = (\a -> a * 2) in List.map var xs
but this would be preferable:
example xs = let fn a = a * 2 in List.map fn xs
Given:
when doing a lift to let on the lambda this currently results in
but this would be preferable: