Re:Currying
by iso8859-1 on Sunday April 07, 2024 @08:30PM
(#39965158)
If you look at how people actually write PureScript, which is much like Haskell, but with anonymous records, you can see that they're not actually used 99% of the time.
[ Parent
| on HN ]
Re:Currying
by ivanjermakov on Sunday April 07, 2024 @10:12PM
(#39965634)
Could you share an example?
Re:Currying
by bPspGiJT8Y on Monday April 08, 2024 @10:26AM
(#39970071)
This function would use an anonymous record:
splitString :: { pattern :: String, string :: String } -> Array String
splitString { pattern, string } = ...
This function would use positional arguments: splitString :: Pattern -> String -> Array String
splitString pattern string = ...