Skip to content

Commit de0ff10

Browse files
lambda is last arg
1 parent a306223 commit de0ff10

File tree

1 file changed

+8
-4
lines changed
  • core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/api

1 file changed

+8
-4
lines changed

core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/api/move.kt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,8 @@ public fun <T> DataFrame<T>.moveToStart(columns: ColumnsSelector<T, *>): DataFra
321321
*/
322322
@Refine
323323
@Interpretable("MoveToStart1")
324-
public fun <T> DataFrame<T>.moveToStart(columns: ColumnsSelector<T, *>, insideGroup: Boolean): DataFrame<T> = move(columns).toStart(insideGroup)
324+
public fun <T> DataFrame<T>.moveToStart(insideGroup: Boolean, columns: ColumnsSelector<T, *>): DataFrame<T> =
325+
move(columns).toStart(insideGroup)
325326

326327
@Deprecated(MOVE_TO_LEFT, ReplaceWith(MOVE_TO_LEFT_REPLACE), DeprecationLevel.ERROR)
327328
public fun <T> DataFrame<T>.moveToLeft(vararg columns: String): DataFrame<T> = moveToStart { columns.toColumnSet() }
@@ -340,7 +341,8 @@ public fun <T> DataFrame<T>.moveToStart(vararg columns: String): DataFrame<T> =
340341
* @param [insideGroup] If true, selected columns will be moved to the start remaining inside their group,
341342
* else they will be moved to the start of the top level.
342343
*/
343-
public fun <T> DataFrame<T>.moveToStart(vararg columns: String, insideGroup: Boolean): DataFrame<T> = moveToStart ({ columns.toColumnSet() }, insideGroup)
344+
public fun <T> DataFrame<T>.moveToStart(vararg columns: String, insideGroup: Boolean): DataFrame<T> =
345+
moveToStart(insideGroup) { columns.toColumnSet() }
344346

345347
@Deprecated(MOVE_TO_LEFT, ReplaceWith(MOVE_TO_LEFT_REPLACE), DeprecationLevel.ERROR)
346348
@AccessApiOverload
@@ -416,7 +418,8 @@ public fun <T> DataFrame<T>.moveToEnd(columns: ColumnsSelector<T, *>): DataFrame
416418
*/
417419
@Refine
418420
@Interpretable("MoveToEnd1")
419-
public fun <T> DataFrame<T>.moveToEnd(columns: ColumnsSelector<T, *>, insideGroup: Boolean): DataFrame<T> = move(columns).toEnd(insideGroup)
421+
public fun <T> DataFrame<T>.moveToEnd(insideGroup: Boolean, columns: ColumnsSelector<T, *>): DataFrame<T> =
422+
move(columns).toEnd(insideGroup)
420423

421424
@Deprecated(MOVE_TO_RIGHT, ReplaceWith(MOVE_TO_RIGHT_REPLACE), DeprecationLevel.ERROR)
422425
public fun <T> DataFrame<T>.moveToRight(vararg columns: String): DataFrame<T> = moveToEnd { columns.toColumnSet() }
@@ -435,7 +438,8 @@ public fun <T> DataFrame<T>.moveToEnd(vararg columns: String): DataFrame<T> = mo
435438
* @param [insideGroup] If true, selected columns will be moved to the end remaining inside their group,
436439
* else they will be moved to the end of the top level.
437440
*/
438-
public fun <T> DataFrame<T>.moveToEnd(vararg columns: String, insideGroup: Boolean): DataFrame<T> = moveToEnd ({ columns.toColumnSet() }, insideGroup)
441+
public fun <T> DataFrame<T>.moveToEnd(vararg columns: String, insideGroup: Boolean): DataFrame<T> =
442+
moveToEnd(insideGroup) { columns.toColumnSet() }
439443

440444
@Deprecated(MOVE_TO_RIGHT, ReplaceWith(MOVE_TO_RIGHT_REPLACE), DeprecationLevel.ERROR)
441445
@AccessApiOverload

0 commit comments

Comments
 (0)