Erlang-like pattern matching in JavaScript.

Match Erlang-like pattern matching in JavaScript (use at your own risk). const { match } = require('@yuanchuan/match'); const sum = match( ([]) => 0, ([H, ...T]) => H + sum(T) ); // 10 sum([1, 2, 3, 4]);
Category: JavaScript / RegExp
Watchers: 1
Star: 31
Fork: 1
Last update: Aug 4, 2022

Related Repos


theicfire LogRegex LogRegex allows you to find patterns inside of logs. Let's jump right into an example: import { FileHandler, LogRegex, Matcher } from "./inde

slevithan XRegExp 5.1.0 XRegExp provides augmented (and extensible) JavaScript regular expressions. You get modern syntax and flags beyond what browsers support

aykutkardas Learn RegEx step by step, from zero to advanced.

mandel59 常用漢字表 常用漢字表(平成22年内閣告示第2号)のPDFから本表を抽出し、JSON形式に変換したものです。 著作権について 著作権法第十三条の二において、国が発する告示は、著作権法第二章の規定による権利の目的となることができない旨が定められています。 e-gov 法令検索 著作権法 データ抽出プロ

jennybc NOTE: This is a toy package created for expository purposes, for the second edition of R Packages. It is not meant to actually be useful. If you want

AbhinavOmprakash luna No more regrets, wield the power of regex with the readability of English with luna. About luna is a Domain specific language (DSL) that is reada

jonschlinkert whence Add context awareness to your apps and frameworks by safely evaluating user-defined conditional expressions. Useful for evaluating expressions

phenax A typescript library for writing type-safe regular expressions using named capture groups.

egoist @egoist/path-parser This module is entirely extracted from vue-router, it's basically a light-weight version of path-to-regexp with path ranking suppo

mathiasbynens emoji-test-regex-pattern emoji-test-regex-pattern offers Java- and JavaScript-compatible regular expression patterns to match all emoji symbols and se

aloisdg A curated collection of awesome Regex libraries, tools, frameworks and software

JossyDevers Cron Expression Input Description Cron Expression UI: Input component to generate cron expressions easily and intuitively, as in

francisrstokes Super Expressive is a JavaScript library that allows you to build regular expressions in almost natural language - with no extra dependencies, and a lightweight code footprint (less than 3kb with minification + gzip!).

kitten The magical sticky regex-based parser generator 🧙

geongeorge iHateRegex 😈 don't just use; understand. - a regex cheatsheet for the haters. Chat with us on Telegram Features 😎 Visual representation of