Skip to content

Commit 0f35282

Browse files
committed
Version 0.1.0
1 parent 4f06b14 commit 0f35282

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

examples/fp.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
### [`map :: (a -> b) -> [a] -> [b]`](https://github.com/plaid/transcribe/blob/v0.1.0/examples/fp.js#L4)
2+
3+
Transforms a list of elements of type `a` into a list of elements
4+
of type `b` using the provided function of type `a -> b`.
5+
6+
```javascript
7+
> map(String)([1, 2, 3, 4, 5])
8+
['1', '2', '3', '4', '5']
9+
```
10+
11+
### [`filter :: (a -> Boolean) -> [a] -> [a]`](https://github.com/plaid/transcribe/blob/v0.1.0/examples/fp.js#L24)
12+
13+
Returns the list of elements which satisfy the provided predicate.
14+
15+
```javascript
16+
> filter(function(n) { return n % 2 === 0; })([1, 2, 3, 4, 5])
17+
[2, 4]
18+
```

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "transcribe",
3-
"version": "0.0.0",
3+
"version": "0.1.0",
44
"description": "Generate Markdown documentation from code comments",
55
"license": "MIT",
66
"homepage": "https://github.com/plaid/transcribe",

0 commit comments

Comments
 (0)