Strumenta / antlr-kotlin

Support for Kotlin as a target for ANTLR 4
Apache License 2.0
223 stars 47 forks source link

JS implementation of Collections.kt, copied from the native implementation #78

Closed ianparkinson closed 2 years ago

ianparkinson commented 2 years ago

A simple implementation of Collections.min and Collections.max for JS.

This is a copy of the existing native implementation.

The JVM implementation instead uses java.util.Collections.min and java.util.Collections.max. However, the native/JS implementation should also work under JVM - would it be better to add this implementation to commonMain and remove the platform-specific implementations?

ftomassetti commented 2 years ago

Thank you!