The Functional Fortran library provides a selection of modern Fortran constructs for functional programming. This library provides a set of commonly used tools in functional programming, with the purpose to help Fortran programmers be less imperative and more functional.
The library includes:
* `arange` - returns a regularly spaced array
* `complement` - returns a set complement of two arrays
* `filter` - filters an array using a logical input function
* `foldl` - recursively left-folds an array using an input function
* `foldr` - recursively right-folds an array using an input function
* `foldt` - recursively tree-folds an array using an input function
* `head` - returns the first element of an array
* `init` - returns everything but the last element
* `insert` - inserts an element into an array, out-of-bound safe
* `intersection` - returns a set intersection of two arrays
* `iterfold` - iteratively reduces an array using an input function
* `last` - returns the last element of an array
* `limit` - limits a scalar or array by given lower and upper bounds
* `map` - maps an array with an input function
* `set` - returns a set given input array
* `reverse` - returns array in reverse order
* `sort` - recursive quicksort using binary tree pivot
* `split` - returns first or second half of an array
* `subscript` - out-of-bound safe implementation of vector subscript
* `tail` - returns everything but the first element
* `unfold` - unfolds an array with an input function
* `union` - returns a set union of two arrays
(Descriptions taken from homepage)
This package contains a Simply Fortran example project.
Version: 0.4.0Homepage: https://github.com/wavebitscientific/functional-fortran
License: Wavebit BSD
Platforms:
Tags:
Dependencies:
Conflicts:
To install packages, please use a suitable client.