functional
所属分类:collect
开发工具:Lua
文件大小:0KB
下载次数:0
上传日期:2022-01-05 02:42:29
上 传 者:
sh-1993
说明: 使用Lua进行函数编程,
(Functional Programming with Lua,)
文件列表:
.luacov (1480, 2022-01-02)
AUTHORS.md (676, 2022-01-02)
LICENSE.md (1074, 2022-01-02)
Makefile (753, 2022-01-02)
NEWS.md (2881, 2022-01-02)
build-aux/ (0, 2022-01-02)
build-aux/config.ld.in (865, 2022-01-02)
lib/ (0, 2022-01-02)
lib/std/ (0, 2022-01-02)
lib/std/functional/ (0, 2022-01-02)
lib/std/functional/_base.lua (2090, 2022-01-02)
lib/std/functional/init.lua (24758, 2022-01-02)
lib/std/functional/operator.lua (6189, 2022-01-02)
lib/std/functional/tuple.lua (4512, 2022-01-02)
spec/ (0, 2022-01-02)
spec/functional_spec.yaml (26246, 2022-01-02)
spec/operator_spec.yaml (9238, 2022-01-02)
spec/spec_helper.lua (3090, 2022-01-02)
spec/tuple_spec.yaml (4417, 2022-01-02)
std.functional-git-1.rockspec (1164, 2022-01-02)
Functional Programming with Lua
===============================
Copyright (C) 2002-2022 [std.functional authors][authors]
[![License](http://img.shields.io/:license-mit-blue.svg)](https://mit-license.org/2002)
[![workflow status](https://github.com/lua-stdlib/functional/actions/workflows/spec.yml/badge.svg?branch=master)](https://github.com/lua-stdlib/functional/actions)
[![codecov.io](https://codecov.io/gh/lua-stdlib/functional/branch/master/graph/badge.svg)](https://codecov.io/gh/lua-stdlib/functional)
This is a collection of Functional Programming libraries for Lua 5.1
(including LuaJIT), 5.2, 5.3 and 5.4. The libraries are copyright by their
authors (see the [AUTHORS][] file for details), and released under the
[MIT license][mit] (the same license as Lua itself). There is no warranty.
_std.functional_ has no run-time prerequisites beyond a standard Lua system,
though it will take advantage of [stdlib][], [strict][] and [typecheck][]
if they are installed.
[authors]: https://github.com/lua-stdlib/functional/blob/master/AUTHORS.md
[github]: https://github.com/lua-stdlib/functional/ "Github repository"
[lua]: https://www.lua.org "The Lua Project"
[mit]: https://mit-license.org "MIT License"
[stdlib]: https://github.com/lua-stdlib/lua-stdlib "Standard Lua Libraries"
[strict]: https://github.com/lua-stdlib/strict "strict variables"
[typecheck]: https://github.com/gvvaughan/typecheck "function type checks"
Installation
------------
The simplest and best way to install std.functional is with [LuaRocks][]. To
install the latest release):
```bash
luarocks install std.functional
```
To install current git master (for testing, before submitting a bug
report for example):
```bash
luarocks install http://github.com/lua-stdlib/functional/raw/master/std.functional-git-1.rockspec
```
The best way to install without [LuaRocks][] is to copy the `std/functional`
folder and its contents into a directory on your package search path.
[luarocks]: https://www.luarocks.org "Lua package manager"
Documentation
-------------
The latest release of these libraries is [documented in LDoc][github.io].
Pre-built HTML files are included in the release.
[github.io]: https://lua-stdlib.github.io/functional
Bug reports and code contributions
----------------------------------
These libraries are written and maintained by their users.
Please make bug reports and suggestions as [GitHub Issues][issues].
Pull requests are especially appreciated.
But first, please check that your issue has not already been reported by
someone else, and that it is not already fixed by [master][github] in
preparation for the next release (see Installation section above for how
to temporarily install master with [LuaRocks][]).
There is no strict coding style, but please bear in mind the following
points when proposing changes:
0. Follow existing code. There are a lot of useful patterns and avoided
traps there.
1. 3-character indentation using SPACES in Lua sources: It makes rogue
TABs easier to see, and lines up nicely with 'if' and 'end' keywords.
2. Simple strings are easiest to type using single-quote delimiters,
saving double-quotes for where a string contains apostrophes.
3. Save horizontal space by only using SPACEs where the parser requires
them.
4. Use vertical space to separate out compound statements to help the
coverage reports discover untested lines.
[issues]: https://github.com/lua-stdlib/functional/issues
近期下载者:
相关文件:
收藏者: