Skip to content

Commit

Permalink
chore: update docs and github runner
Browse files Browse the repository at this point in the history
  • Loading branch information
baetheus committed Mar 14, 2024
1 parent fa730f7 commit ab4d6ca
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deno.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

strategy:
matrix:
deno: ["v1.36"]
deno: ["v1.41.1"]
os: [ubuntu-latest]

steps:
Expand All @@ -40,7 +40,7 @@ jobs:

strategy:
matrix:
deno: ["v1.36"]
deno: ["v1.41.1"]
# os: [macOS-latest, windows-latest, ubuntu-latest]
os: [ubuntu-latest]

Expand Down
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,24 @@ Some non-goals of functional are:
- To be an exact port of fp-ts. Many changes have been implemented throughout
functional that diverge sharply from fp-ts, this is often on purpose.

## Usage

This library is a collection of smaller tools. This means that each one should
be imported separately. There is no barrel export, instead once should pull in
the modules they need individually. Following is an example importing from jsr
withing deno.

```ts
import * as A from "jsr:@baetheus/fun/array";
import { pipe } from "jsr:@baetheus/fun/fn";

pipe(
A.range(5), // get 5 numbers 0-4
A.map(n => n * n), // square them
console.log // [ 0, 1, 4, 9, 16 ]
);
```

## Documentation

Documentation is generated for each github tagged release. The latest
Expand Down

0 comments on commit ab4d6ca

Please sign in to comment.