Y
Hacker News
new
|
ask
|
show
|
jobs
by
seliopou
5299 days ago
What about something like this:
fn = compose(truncate.flip().curry(20), trim, sanitize); output = fn(input);
Better or worse?
1 comments
DougBTX
5299 days ago
Better, since it is clear how to pass a function as an argument.
link