承接 ikr/fyrfyrfyr 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ikr/fyrfyrfyr

Composer 安装命令:

composer require ikr/fyrfyrfyr

包简介

Basic tools for composing functions, to write simpler and safer programs

README 文档

README

Build Status

About

Basic tools for composing functions, to write simpler and safer programs in PHP 5.4+. Heavily inspired by @drboolean's book, the Ramda library, and the Fantasy Land JS project.

fox logo

Why?

This library grew out of frustration with old PHP code I have to maintain. I'm convinced that functional programming can lead us Out of the Tar Pit. I do know about Phamda and Pramda; very cool projects, but they both require PHP 5.6+. Then, I was also not 100% on board with some design choices those 2 make. I'd like to keep fyr-fyr-fyr tiny and lean, away from all sorts of cruft and magic. In many ways that's a matter of taste though.

API

Constructing functions

Composition

(f⋅g⋅h)(x) <-> f(g(h(x)))

Currying

f(x, y) <-> f(x)(y)

Flipping the arguments

flip

Primary higher order functions

map
chain
reduce
converge

Associative arrays

assoc
assocPath
fromPairs
merge
mergeAll
pick
pickAll
prop
propOr

Lists

append
indexBy
minBy

Utilities

add
always
identity
inc

Algebraic structures

IO
Maybe

Status: WORK IN PROGRESS

Not yet ready for using in production

统计信息

  • 总下载量: 21.1k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-05-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固