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

Better, since it is clear how to pass a function as an argument.