The Wayback Machine - https://web.archive.org/web/20201116192219/https://github.com/topics/function-composition
Skip to content
#

function-composition

Here are 42 public repositories matching this topic...

In this article I try to explain why Haskell keeps being such an important language by presenting some of its most important and distinguishing features and detailing them with working code examples. The presentation aims to be self-contained and does not require any previous knowledge of the language.
  • Updated Oct 26, 2020
  • Haskell
rubico
richytong
richytong commented Oct 1, 2020

Syntax

var T any,
  args ...any,
  accumulator any,
  reducer (any, T)=>any,
  init (...args=>accumulator)|accumulator

reduce.sync(reduce, init?)(...args) -> any

Synchronous reduce without promise handling. Only for arrays (for now)

const add = (a, b) => a + b

console.log(
  reduce.sync(add, 0)([1, 2, 3, 4, 5]),
) // 15
  1. Implement

Improve this page

Add a description, image, and links to the function-composition topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the function-composition topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.