-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstreams-scm-1.rockspec
More file actions
47 lines (40 loc) · 1.11 KB
/
streams-scm-1.rockspec
File metadata and controls
47 lines (40 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
rockspec_format = "3.0"
package = "streams"
version = "scm-1"
source = {
url = "git+https://github.com/rbaltrusch/stream.lua",
branch = "master",
}
description = {
summary = "Iterator-chaining library implementing common functional programming patterns such as `map`, `filter`, and `reduce`",
detailed = [[
This library provides a Java-like `Stream` class that provides a fluent interface of lazily-computed and chainable iterator operations such as `map`, `filter`, and `reduce`. For example:
```lua
local fn = require "stream"
fn.stream{2, 3, 4, 7}
:filter(function(x) return x % 2 == 0 end)
:map(function(x) return x ^ 2 end)
:collect() -- {4, 16}
```
]],
homepage = "https://github.com/rbaltrusch/stream.lua",
issues_url = "https://github.com/rbaltrusch/stream.lua/issues",
license = "MIT",
maintainer = "Richard Baltrusch",
}
dependencies = {
"lua >= 5.1"
}
test_dependencies = {
"luaunit",
}
build = {
type = "builtin",
modules = {
stream = "stream.lua",
},
}
test = {
type = "command",
script = "tests/run_tests.lua",
}