Dennis Hackethal’s Blog

My blog about philosophy, coding, and anything else that interests me.

Tweet

This mirrored tweet of mine may be formatted slightly differently than on Twitter.

Dennis Hackethal

@SimonHoiberg

That one feels like something that shouldn’t be implemented on a language level but simply as a function.

let pipe = (init, fns) => {
return fns.reduce((acc, curr) => {
return curr(acc);
}, init);
}

Typed this on my phone but I think it should work.


What people are saying

Below comments were posted on this blog, not on Twitter.

What are your thoughts?

Your comment won’t be posted to Twitter, only to my blog.
You are responding to comment #. Clear

Preview

Markdown supported. cmd + enter to comment. Your comment will appear upon approval. You are responsible for what you write. Terms, privacy policy
This small puzzle helps protect the blog against automated spam.

Preview