Tag

Monad

0 views collected around this technical thread.

DaTaobao Tech
DaTaobao Tech
Dec 14, 2022 · Fundamentals

Design and Implementation of a Functional Expression Engine Using Parser Combinators in Swift

The article presents a Swift‑based functional expression engine built with parser combinators and a monadic parser abstraction, detailing its layered architecture, grammar, expression‑tree representation, and performance benchmarks that replace NSPredicate limitations with a fast, composable solution for evaluating nested, configurable string expressions.

Functional ProgrammingMonadParser Combinators
0 likes · 21 min read
Design and Implementation of a Functional Expression Engine Using Parser Combinators in Swift
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Jan 19, 2021 · Fundamentals

Understanding Functor, Applicative, and Monad in JavaScript with Practical Examples

The article explains JavaScript’s Functor, Applicative, and Monad abstractions—showing how map, ap, and chain (flatMap) on Box types such as Either, LazyBox, and a lazy Task can replace nested try‑catch and null checks, enable composable synchronous and asynchronous code, and support parallel execution with Task.ap.

ApplicativeFunctional ProgrammingJavaScript
0 likes · 20 min read
Understanding Functor, Applicative, and Monad in JavaScript with Practical Examples