Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming.threads > #5435

Delphi Library that implements higher-order functions like Map, Reduce and Filter

Newsgroups comp.programming.threads
Date 2019-12-31 06:48 -0800
Message-ID <7124bfda-cf44-4027-b3f2-2424f69a5144@googlegroups.com> (permalink)
Subject Delphi Library that implements higher-order functions like Map, Reduce and Filter
From aminer68@gmail.com

Show all headers | View raw


Hello,


Delphi Library that implements higher-order functions like Map, Reduce and Filter

Author: Amine Moulay Ramdane

Description:

Delphi Library that implements higher-order functions like: Map, Reduce and Filter.

Map: This is available in many functional programming languages. This takes as arguments a func function and a list of elements list, and returns a new list with func applied to each element of the list.

Reduce: This is also known as Fold. This requires a combining function, a starting point for a data structure, and possibly some default values to be used under certain conditions. The Reduce function proceeds to combine elements of the data structure using the injected function. This is used to perform operations on a set of values to get only one result (or a smaller set of values) that represents the reduction of that initial data. For example, the values 1, 2, and 3 can be reduced to the single value 6 using the SUM .

Filter: This requires a data structure and a filter condition. This returns all the elements in the structure that match the filter condition.

Please look at the Delphi demo inside the zip file called test_MapReduce.pas .

Language: Delphi 2009+

Operating Systems: Windows, Mac OSX , Linux 


You can download it from:

https://sites.google.com/site/scalable68/delphi-library-that-implements-higher-order-functions-like-map-reduce-and-filter


Thank you,
Amine Moulay Ramdane.

Back to comp.programming.threads | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Delphi Library that implements higher-order functions like Map, Reduce and Filter aminer68@gmail.com - 2019-12-31 06:48 -0800
  Re: Delphi Library that implements higher-order functions like Map, Reduce and Filter aminer68@gmail.com - 2019-12-31 07:16 -0800

csiph-web