Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Currying in JavaScript. Parent comment
Builder pattern. In a language that accommodates it well, such as Elm, it would look like this:
IconLib.downloadIcon |> IconLib.withSize 12 |> IconLib.withColor "red" |> IconLib.withCssClass "dl-icon"
standardDownloadIcon = IconLib.downloadIcon |> IconLib.withSize 12 largeDownloadIcon = IconLib.downloadIcon |> IconLib.withSize 16
There are no comments on this comment yet.
Builder pattern. In a language that accommodates it well, such as Elm, it would look like this:
Allowing currying of any parameter like: