Functional Programming Constructs

버전 1.2.0.1 (52.2 KB) 작성자: Tucker McClure
A set of files for treating many operations, like "if", "for", and even "()", as functions.
다운로드 수: 2.1K
업데이트 날짜: 2016/9/1

라이선스 보기

편집자 메모: This file was selected as MATLAB Central Pick of the Week

This set of files enables working more easily with functions of functions for concise and powerful code.
A few highlights of this way of working:

* Map multiple inputs to multiple functions and assign multiple outputs with a single line.

* Use conditionals (like "if"), loops, and recursion in anonymous functions.

A document with derivations and examples of these functions is included. See the readme.txt. Also, each function contains a 'help' entry with examples.

This submission requires strong familiarity with function handles and anonymous functions. If those aren't familiar terms, check the documentation first!

인용 양식

Tucker McClure (2024). Functional Programming Constructs (https://www.mathworks.com/matlabcentral/fileexchange/39735-functional-programming-constructs), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2012b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Files and Folders에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.2.0.1

Updated license

1.2.0.0

The 'wrap' function returned all output arguments up to the highest selected. It now "wraps up" only the specifically requested arguments. (Thanks Harald.)

1.1.0.0

Fixed iif to accept function handles for conditions.

1.0.0.0