feiyu02
2024-01-26 01eae19a4870033e879a3faa6749eece92926cab
src/test/kotlin/com/flightfeather/uav/Test.kt
@@ -118,11 +118,10 @@
    @Test
    fun foo16() {
        val l = mutableListOf<BigDecimal>().apply {
            add(BigDecimal.valueOf(6.23))
            add(BigDecimal("6.23"))
            add(BigDecimal(6.23))
        val list = listOf(1, 2, 3, 4, 5, 6)
        val iterator = list.iterator().also { it.next() }
        iterator.forEach {
            println(it)
        }
        l.forEach { println(it) }
    }
}