Skip to content

Commit

Permalink
Version 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchambers committed Jan 19, 2020
1 parent 4054297 commit 9a32d1e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2019 Sanctuary
Copyright (c) 2020 Sanctuary

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
Expand Down
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Descending differs from [Identity][] only in the behaviour of its
. 'Contravariant ❌ ' ]
```

#### <a name="Descending" href="https://github.com/sanctuary-js/sanctuary-descending/blob/v2.0.0/index.js#L136">`Descending :: a -⁠> Descending a`</a>
#### <a name="Descending" href="https://github.com/sanctuary-js/sanctuary-descending/blob/v2.1.0/index.js#L136">`Descending :: a -⁠> Descending a`</a>

Descending's sole data constructor. Additionally, it serves as the
Descending [type representative][].
Expand All @@ -71,7 +71,7 @@ Descending [type representative][].
Descending (42)
```

#### <a name="Descending.fantasy-land/of" href="https://github.com/sanctuary-js/sanctuary-descending/blob/v2.0.0/index.js#L160">`Descending.fantasy-land/of :: a -⁠> Descending a`</a>
#### <a name="Descending.fantasy-land/of" href="https://github.com/sanctuary-js/sanctuary-descending/blob/v2.1.0/index.js#L160">`Descending.fantasy-land/of :: a -⁠> Descending a`</a>

`of (Descending) (x)` is equivalent to `Descending (x)`.

Expand All @@ -80,7 +80,7 @@ Descending (42)
Descending (42)
```

#### <a name="Descending.fantasy-land/chainRec" href="https://github.com/sanctuary-js/sanctuary-descending/blob/v2.0.0/index.js#L173">`Descending.fantasy-land/chainRec :: ((a -⁠> c, b -⁠> c, a) -⁠> Descending c, a) -⁠> Descending b`</a>
#### <a name="Descending.fantasy-land/chainRec" href="https://github.com/sanctuary-js/sanctuary-descending/blob/v2.1.0/index.js#L173">`Descending.fantasy-land/chainRec :: ((a -⁠> c, b -⁠> c, a) -⁠> Descending c, a) -⁠> Descending b`</a>

```javascript
> Z.chainRec (
Expand All @@ -98,7 +98,7 @@ Descending (64)
Descending (0)
```

#### <a name="Descending.prototype.@@show" href="https://github.com/sanctuary-js/sanctuary-descending/blob/v2.0.0/index.js#L196">`Descending#@@show :: Showable a => Descending a ~> () -⁠> String`</a>
#### <a name="Descending.prototype.@@show" href="https://github.com/sanctuary-js/sanctuary-descending/blob/v2.1.0/index.js#L196">`Descending#@@show :: Showable a => Descending a ~> () -⁠> String`</a>

`show (Descending (x))` is equivalent to
`'Descending (' + show (x) + ')'`.
Expand All @@ -108,7 +108,7 @@ Descending (0)
'Descending (["foo", "bar", "baz"])'
```

#### <a name="Descending.prototype.fantasy-land/equals" href="https://github.com/sanctuary-js/sanctuary-descending/blob/v2.0.0/index.js#L209">`Descending#fantasy-land/equals :: Setoid a => Descending a ~> Descending a -⁠> Boolean`</a>
#### <a name="Descending.prototype.fantasy-land/equals" href="https://github.com/sanctuary-js/sanctuary-descending/blob/v2.1.0/index.js#L209">`Descending#fantasy-land/equals :: Setoid a => Descending a ~> Descending a -⁠> Boolean`</a>

`Descending (x)` is equal to `Descending (y)` [iff][] `x` is equal to `y`
according to [`Z.equals`][].
Expand All @@ -121,7 +121,7 @@ true
false
```

#### <a name="Descending.prototype.fantasy-land/lte" href="https://github.com/sanctuary-js/sanctuary-descending/blob/v2.0.0/index.js#L225">`Descending#fantasy-land/lte :: Ord a => Descending a ~> Descending a -⁠> Boolean`</a>
#### <a name="Descending.prototype.fantasy-land/lte" href="https://github.com/sanctuary-js/sanctuary-descending/blob/v2.1.0/index.js#L225">`Descending#fantasy-land/lte :: Ord a => Descending a ~> Descending a -⁠> Boolean`</a>

`Descending (x)` is less than or equal to `Descending (y)` [iff][]
`y` is less than or equal to `x` according to [`Z.lte`][] (note the
Expand All @@ -132,7 +132,7 @@ transposition of `x` and `y`).
[Descending (5), Descending (2), Descending (1)]
```

#### <a name="Descending.prototype.fantasy-land/concat" href="https://github.com/sanctuary-js/sanctuary-descending/blob/v2.0.0/index.js#L239">`Descending#fantasy-land/concat :: Semigroup a => Descending a ~> Descending a -⁠> Descending a`</a>
#### <a name="Descending.prototype.fantasy-land/concat" href="https://github.com/sanctuary-js/sanctuary-descending/blob/v2.1.0/index.js#L239">`Descending#fantasy-land/concat :: Semigroup a => Descending a ~> Descending a -⁠> Descending a`</a>

`concat (Descending (x)) (Descending (y))` is equivalent to
`Descending (concat (x) (y))`.
Expand All @@ -142,7 +142,7 @@ transposition of `x` and `y`).
Descending ([1, 2, 3, 4, 5, 6])
```

#### <a name="Descending.prototype.fantasy-land/map" href="https://github.com/sanctuary-js/sanctuary-descending/blob/v2.0.0/index.js#L252">`Descending#fantasy-land/map :: Descending a ~> (a -⁠> b) -⁠> Descending b`</a>
#### <a name="Descending.prototype.fantasy-land/map" href="https://github.com/sanctuary-js/sanctuary-descending/blob/v2.1.0/index.js#L252">`Descending#fantasy-land/map :: Descending a ~> (a -⁠> b) -⁠> Descending b`</a>

`map (f) (Descending (x))` is equivalent to `Descending (f (x))`.

Expand All @@ -151,7 +151,7 @@ Descending ([1, 2, 3, 4, 5, 6])
Descending (8)
```

#### <a name="Descending.prototype.fantasy-land/ap" href="https://github.com/sanctuary-js/sanctuary-descending/blob/v2.0.0/index.js#L264">`Descending#fantasy-land/ap :: Descending a ~> Descending (a -⁠> b) -⁠> Descending b`</a>
#### <a name="Descending.prototype.fantasy-land/ap" href="https://github.com/sanctuary-js/sanctuary-descending/blob/v2.1.0/index.js#L264">`Descending#fantasy-land/ap :: Descending a ~> Descending (a -⁠> b) -⁠> Descending b`</a>

`ap (Descending (f)) (Descending (x))` is equivalent to
`Descending (f (x))`.
Expand All @@ -161,7 +161,7 @@ Descending (8)
Descending (8)
```

#### <a name="Descending.prototype.fantasy-land/chain" href="https://github.com/sanctuary-js/sanctuary-descending/blob/v2.0.0/index.js#L277">`Descending#fantasy-land/chain :: Descending a ~> (a -⁠> Descending b) -⁠> Descending b`</a>
#### <a name="Descending.prototype.fantasy-land/chain" href="https://github.com/sanctuary-js/sanctuary-descending/blob/v2.1.0/index.js#L277">`Descending#fantasy-land/chain :: Descending a ~> (a -⁠> Descending b) -⁠> Descending b`</a>

`chain (f) (Descending (x))` is equivalent to `f (x)`.

Expand All @@ -170,7 +170,7 @@ Descending (8)
Descending (100)
```

#### <a name="Descending.prototype.fantasy-land/reduce" href="https://github.com/sanctuary-js/sanctuary-descending/blob/v2.0.0/index.js#L289">`Descending#fantasy-land/reduce :: Descending a ~> ((b, a) -⁠> b, b) -⁠> b`</a>
#### <a name="Descending.prototype.fantasy-land/reduce" href="https://github.com/sanctuary-js/sanctuary-descending/blob/v2.1.0/index.js#L289">`Descending#fantasy-land/reduce :: Descending a ~> ((b, a) -⁠> b, b) -⁠> b`</a>

`reduce (f) (x) (Descending (y))` is equivalent to `f (x) (y)`.

Expand All @@ -179,7 +179,7 @@ Descending (100)
[1, 2, 3, 4, 5, 6]
```

#### <a name="Descending.prototype.fantasy-land/traverse" href="https://github.com/sanctuary-js/sanctuary-descending/blob/v2.0.0/index.js#L301">`Descending#fantasy-land/traverse :: Applicative f => Descending a ~> (TypeRep f, a -⁠> f b) -⁠> f (Descending b)`</a>
#### <a name="Descending.prototype.fantasy-land/traverse" href="https://github.com/sanctuary-js/sanctuary-descending/blob/v2.1.0/index.js#L301">`Descending#fantasy-land/traverse :: Applicative f => Descending a ~> (TypeRep f, a -⁠> f b) -⁠> f (Descending b)`</a>

`traverse (_) (f) (Descending (x))` is equivalent to
`map (Descending) (f (x))`.
Expand All @@ -189,7 +189,7 @@ Descending (100)
[Descending (101), Descending (102), Descending (103)]
```

#### <a name="Descending.prototype.fantasy-land/extend" href="https://github.com/sanctuary-js/sanctuary-descending/blob/v2.0.0/index.js#L314">`Descending#fantasy-land/extend :: Descending a ~> (Descending a -⁠> b) -⁠> Descending b`</a>
#### <a name="Descending.prototype.fantasy-land/extend" href="https://github.com/sanctuary-js/sanctuary-descending/blob/v2.1.0/index.js#L314">`Descending#fantasy-land/extend :: Descending a ~> (Descending a -⁠> b) -⁠> Descending b`</a>

`extend (f) (Descending (x))` is equivalent to
`Descending (f (Descending (x)))`.
Expand All @@ -199,7 +199,7 @@ Descending (100)
Descending (100)
```

#### <a name="Descending.prototype.fantasy-land/extract" href="https://github.com/sanctuary-js/sanctuary-descending/blob/v2.0.0/index.js#L327">`Descending#fantasy-land/extract :: Descending a ~> () -⁠> a`</a>
#### <a name="Descending.prototype.fantasy-land/extract" href="https://github.com/sanctuary-js/sanctuary-descending/blob/v2.1.0/index.js#L327">`Descending#fantasy-land/extract :: Descending a ~> () -⁠> a`</a>

`extract (Descending (x))` is equivalent to `x`.

Expand All @@ -210,7 +210,7 @@ Descending (100)

[Fantasy Land]: https://github.com/fantasyland/fantasy-land/tree/v4.0.1
[Identity]: https://github.com/sanctuary-js/sanctuary-identity
[`Z.equals`]: https://github.com/sanctuary-js/sanctuary-type-classes/tree/v12.0.0#equals
[`Z.lte`]: https://github.com/sanctuary-js/sanctuary-type-classes/tree/v12.0.0#lte
[`Z.equals`]: https://github.com/sanctuary-js/sanctuary-type-classes/tree/v12.1.0#equals
[`Z.lte`]: https://github.com/sanctuary-js/sanctuary-type-classes/tree/v12.1.0#lte
[iff]: https://en.wikipedia.org/wiki/If_and_only_if
[type representative]: https://github.com/fantasyland/fantasy-land/tree/v4.0.1#type-representatives
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sanctuary-descending",
"version": "2.0.0",
"version": "2.1.0",
"description": "Fantasy Land -compliant Descending type",
"license": "MIT",
"repository": {
Expand Down

0 comments on commit 9a32d1e

Please sign in to comment.