We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f61361c commit f130982Copy full SHA for f130982
README.md
@@ -1,5 +1,21 @@
1
# KtxSafe
2
Kotlin functions and extensions to do safe unwrap and functions.
3
+## Add dependencies
4
+- Project `build.gradle`
5
+```
6
+allprojects {
7
+ repositories {
8
+ ...
9
+ maven { url 'https://jitpack.io' }
10
+ }
11
+}
12
13
+- Module `build.gradle`
14
15
+dependencies {
16
+ implementation 'com.github.jeziellago:ktxsafe:VERSION'
17
18
19
20
## Nullable values
21
Handle multiples nullable values on conditions is hard and decrease readability in binary conditions.
@@ -81,4 +97,4 @@ val result = tryOrNull { doSomething() }
81
97
or
82
98
```kotlin
83
99
val result = tryOrNull({ /* log exception */ }, { doSomething() })
84
-```
100
0 commit comments