Skip to content

Commit

Permalink
Release v2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
evpl committed Feb 26, 2024
1 parent 170b1f5 commit b38da83
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,10 @@
# Changelog

## 2.2 (released 25.02.2024)

- renamed `let` interface method to `letIt` (due to the same method name as a static method)
- added `letIntWith`, `letLongWith`, `letDoubleWith` static methods

## 2.1 (released 18.02.2024)

- added `Opt.throwIfEmpty` method
Expand Down
7 changes: 4 additions & 3 deletions README.md
Expand Up @@ -52,7 +52,7 @@ Maven:
<dependency>
<groupId>com.plugatar.jkscope</groupId>
<artifactId>jkscope</artifactId>
<version>2.1</version>
<version>2.2</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -61,7 +61,7 @@ Gradle:

```groovy
dependencies {
implementation 'com.plugatar.jkscope:jkscope:2.1'
implementation 'com.plugatar.jkscope:jkscope:2.2'
}
```

Expand Down Expand Up @@ -204,7 +204,8 @@ int value = letIntRec(10, (n, func) -> {
});
```

`letWith` methods accept values and returning the result of function block.
`letWith`, `letIntWith`, `letLongWith`, `letDoubleWith` methods accept values and returning the result of function
block.

```
int value = letWith("42", it -> Integer.valueOf(it));
Expand Down

0 comments on commit b38da83

Please sign in to comment.