more stdlib and docs, bugfixes

This commit is contained in:
sergeych committed 2025-08-14 14:31:51 +03:00
1 parent 202e70a99a
commit b07452e66e
12 files changed
+227 -64

No files matched your search

+3 -2
View File
@@ -40,8 +40,9 @@ class StdlibTest {
@Test
fun testTake() = runTest {
eval("""
assertEquals([1,2,3], (1..8).take(3).toList() )
assertEquals([7,8], (1..8).takeLast(2).toList() )
val r = 1..8
assertEquals([1,2,3], r.take(3).toList() )
assertEquals([7,8], r.takeLast(2).toList() )
""".trimIndent())
}