Code Monkey home page Code Monkey logo

hwfunctional's Introduction

HWFunctional

概要

汲取 Swift 中的函数式**,为 Objective-C 定制的函数式工具

  1. NSArray、NSDictionary类别: 实现了基本的函数式操作符,如 mapreducefilter 等。

  2. HWRxObserver: 对 Objective-CKVONotification 的封装,配合函数式操作符,实现轻量级的函数响应式范式。更多

  3. HWPomise: 灵感来源于 PromiseKit,这是对 block 回调的一个封装,支持处理并发式、上下文依赖式的 callback hell更多

  4. HWAnimationCoreAnimation 的函数式封装,极大地减少了代码量。

  5. HWEnum:类似 Swiftenum,能存储额外的数据,并由此衍生了HWOptional

Cocoapods

使用

pod 'HWFunctional', '= 0.4.2'

版本说明

0.0.2包含NSArray&NSDictionary类别,HWRxObservdder,HWAnimation,HWPromise等基本功能。

0.1.0添加HWEnum。

0.2.0添加HWMacro、HWTypeDef,提供常用宏,以及Parameter的便捷写法。

0.3.0HWRxObserver添加自动释放,上层可不再调用释放

0.4.0HWRxObserver能创建自定义信号,Cocoa上的应用

0.5.0集成HWWeakTimer,提供计时器相关操作符

0.6.0对现有功能模块的进一步优化,添加KVO的快速宏编写

hwfunctional's People

Contributors

chunzhiying avatar

Stargazers

forthon avatar  avatar 张枞楷 avatar Gocy avatar Terrence avatar 陈华锋 avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.