https://github.com/babedev/thisthenthat
Control code flow more easier
https://github.com/babedev/thisthenthat
Last synced: 8 months ago
JSON representation
Control code flow more easier
- Host: GitHub
- URL: https://github.com/babedev/thisthenthat
- Owner: babedev
- Created: 2018-03-07T09:47:38.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-08T09:24:02.000Z (over 8 years ago)
- Last Synced: 2025-02-09T09:41:33.436Z (over 1 year ago)
- Language: Kotlin
- Size: 129 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://jitpack.io/#babedev/thisthenthat)
# ThisThenThat
Control Kotlin code flow more easier
## Installation
#### Gradle
```Gradle
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
dependencies {
implementation 'com.github.babedev:thisthenthat:0.1.0'
}
```
## Usage
Check single string is not empty
```Kotlin
val greetMessage = someWhere()
greetMessage.isNotEmpty {
print(it)
}
```
Check multiple strings are not empty
```Kotlin
val greet = "greet"
val message = "message"
(greet and message).isNotEmpty {
it.forEach { print(it) }
}
```