File Exchange

image thumbnail

Functional Library

version 1.0 (17.1 KB) by

Functional programming



No License

Type issue with map.m from last update. This should fix that.

Comments and Ratings (6)

Ahmed Fasih

Consider making this a package: put files in a directory called "+functional" and prepend "functional." to every call to a function inside. This enables us to avoid namespace clashes, e.g., by calling "functional.foldl(...)".


Joerg (view profile)

Mo Chen

Mo Chen (view profile)

Ahmed Fasih

Only because Matlab functions all live in the same namespace, I don't like grep.m as its filename conflicts with another FEX submission, "grep: a pedestrian, very fast grep utility" (

Ahmed Fasih

How has this not been 5-starred to the sky!? Thank you, I've been torturing Matlab's cellfun/arrayfun/set/get/etc. into some something functional for years, and now this!

k k


select.m was my second function I wrote, and thus isn't very well done matlab wise. This is much super nicer. Also provides a grep, negate, and isTrue function to use with closures.

MATLAB Release
MATLAB 7.5 (R2007b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video