Skip to content

Commit 21ac364

Browse files
committed
Durin semantically refactorin recipes
1 parent 0f6b5de commit 21ac364

11 files changed

+48
-17
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
doc/index.md

doc/index.md

Whitespace-only changes.

doc/sturm/index.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
```
2+
___ ____ _____ _ _ _ ___ _ ______
3+
/ _ \ / ___⟩ |_ _| | | | | | ˇ__/ | ˇ \
4+
⟨ ⟨ ,⟩ ⟩ \__ \ | | | `–´ | | | | ,^. ,^. |
5+
\_\_/ ⟨____/ |_| `.___,´ |_| |_| |_| |_|
6+
7+
```
8+
9+
*Universal functional stream handling*
10+
11+
# `sturm.js`
12+
## Status
13+
`tl;dr:` Now test-implementing core. (Almost nothing done yet – stay tuned.)
14+
15+
I'm currently bootstrapping the project, designing the API and starting building a API demo.
16+
17+
## Background
18+
Fast and universal (even more abstract than (`most.js`)[https://github.com/cujojs/most]) stream handling.
19+
20+
## Get Involved
21+
Brainstorming and planning phase. Contact me respectively us via (`[email protected]`)[mailto:[email protected]] to discuss and let me know your opinion on how to make the world of streams a better one.
22+
23+
## License
24+
- *Source Code:* LGPL (version 3)
25+
- *Documentation:* CC-BY-NC-SA (version 4)

doc/sturm/props.md

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
- **`LEN`** Length of the stream
1515
- **`KEY`** Key of the event
1616
- **`PRE`** Previous result
17+
- **`CUR`** Circular to current event
1718
- **`NXT`** Next event in the stream
1819

1920
## Value

doc/sturm/recipes/01.map.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22

33
## Example
44
```js
5-
> $(
5+
> new $(
66
async {
77
[RAW]: raw,
88
}=> await raw * 0.01,
9-
)(
109
1,
1110
2,
1211
3,

doc/sturm/recipes/02.map2.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22

33
## Example
44
```js
5-
> $(
5+
> new $(
66
async {}=> 4,
7-
)(
87
1,
98
2,
109
3,

doc/sturm/recipes/03.filter.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22

33
## Example
44
```js
5-
> $.when(
6-
async v=> await v > 0,
7-
)(
5+
> $(
6+
async v=> await v > 0 ? v : void 0,
87
1,
98
0,
109
2,

doc/sturm/recipes/08.end-on.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Example
44
```js
5-
> $(
5+
> new $(
66
async {end}=> crop(!await end),
77
)(
88
{end: false},

doc/sturm/recipes/09.fold.md

+10-7
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22

33
## Example
44
```js
5-
> $(
6-
{},
7-
async {
8-
[RAW]: raw,
9-
[PRE]: pre,
10-
}=> await raw * await pre,
11-
)(1,2,3)
5+
> new $(
6+
$(
7+
{},
8+
async {
9+
[RAW]: raw,
10+
[PRE]: pre,
11+
}=> await raw * await pre,
12+
),
13+
new $(1,2,3),
14+
)
1215

1316
${RAW:1}{RAW:2}{RAW:6}
1417
```

doc/sturm/recipes/10.patch.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22

33
## Example
44
```js
5-
> $(
5+
> new $(
66
async {
77
[ERR]: err,
88
...a,
99
}=> await err ? null : a,
10-
)(
1110
{data: "abc"},
1211
{[ERR]: new Error("Problem")}
1312
)

doc/sturm/recipes/11.flatten.md

+5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22

33
## Example
44
```js
5+
> new $(
6+
$(0, 1, 2),
7+
...$("a", "b", "c"),
8+
)
59

10+
${RAW=0}
611
```
712

813
## Description

0 commit comments

Comments
 (0)