https://github.com/leviysoft/scala-kotlin-compat
A missing compatibility bridge between Scala & Kotlin
https://github.com/leviysoft/scala-kotlin-compat
compat compatibility interop interoperability kotlin scala
Last synced: 10 months ago
JSON representation
A missing compatibility bridge between Scala & Kotlin
- Host: GitHub
- URL: https://github.com/leviysoft/scala-kotlin-compat
- Owner: leviysoft
- License: wtfpl
- Created: 2024-08-28T20:31:01.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-30T18:39:43.000Z (over 1 year ago)
- Last Synced: 2025-03-24T05:44:49.180Z (over 1 year ago)
- Topics: compat, compatibility, interop, interoperability, kotlin, scala
- Language: Kotlin
- Homepage:
- Size: 29.3 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: COPYING.txt
Awesome Lists containing this project
README
# scala-kotlin-compat
A missing compatibility bridge between Scala & Kotlin
This library exposes conversions included in Scala standard library as Kotlin's extension methods
All you need to do is:
- add dependency to `io.github.leviysoft:scala-kotlin-compat_2.13:` or `io.github.leviysoft:scala-kotlin-compat_3:` depending to Scala version in you project
- import `com.github.leviysoft.sk.*`
- call `asJava` \ `asScala` \ `toJava` \ `toScala` methods
The following components of `scala.jdk` are implemented:
- [x] CollectionConverters
- [x] DurationConverters
- [x] FunctionConverters
- [x] FutureConverters
- [x] OptionConverters
- [ ] StreamConverters
In addition, `scala-kotlin-coroutines-compat` provides utilities for calling `suspend fun`s as `Future`s