@@ -9,6 +9,8 @@ import org.jetbrains.kotlinx.dataframe.columns.ColumnWithPath
9
9
import org.jetbrains.kotlinx.dataframe.columns.ColumnsResolver
10
10
import org.jetbrains.kotlinx.dataframe.columns.SingleColumn
11
11
import org.jetbrains.kotlinx.dataframe.columns.toColumnSet
12
+ import org.jetbrains.kotlinx.dataframe.documentation.LineBreak
13
+ import org.jetbrains.kotlinx.dataframe.documentation.UsageTemplateColumnsSelectionDsl.UsageTemplate
12
14
import org.jetbrains.kotlinx.dataframe.impl.aggregation.toColumns
13
15
import org.jetbrains.kotlinx.dataframe.impl.columns.addParentPath
14
16
import org.jetbrains.kotlinx.dataframe.impl.columns.allColumnsExceptAndUnpack
@@ -25,6 +27,68 @@ public interface AllExceptColumnsSelectionDsl<out T> {
25
27
26
28
// region except
27
29
30
+ /* *
31
+ * ## All (Except) Usage
32
+ *
33
+ *
34
+ *
35
+ *
36
+ *
37
+ * `columnSet: `[ColumnSet][org.jetbrains.kotlinx.dataframe.columns.ColumnSet]`<*>`
38
+ *
39
+ *
40
+ *
41
+ * `columnGroup: `[SingleColumn][org.jetbrains.kotlinx.dataframe.columns.SingleColumn]`<`[DataRow][org.jetbrains.kotlinx.dataframe.DataRow]`<*>> | `[String][String]
42
+ *
43
+ *
44
+ * `| `[KProperty][kotlin.reflect.KProperty]`<*>` | `[ColumnPath][org.jetbrains.kotlinx.dataframe.columns.ColumnPath]
45
+ *
46
+ *
47
+ *
48
+ * `condition: `[ColumnFilter][org.jetbrains.kotlinx.dataframe.ColumnFilter]
49
+ *
50
+ *
51
+ *
52
+ * ### In the [ColumnsSelectionDsl][org.jetbrains.kotlinx.dataframe.api.ColumnsSelectionDsl]:
53
+ *
54
+ *
55
+ *
56
+ *
57
+ *
58
+ *
59
+ *
60
+ *
61
+ * ### On a [ColumnSet][org.jetbrains.kotlinx.dataframe.columns.ColumnSet]:
62
+ *
63
+ *
64
+ *
65
+ *
66
+ * [columnSet][org.jetbrains.kotlinx.dataframe.documentation.UsageTemplateColumnsSelectionDsl.UsageTemplate.ColumnSetDef]
67
+ *
68
+ *
69
+ *
70
+ *
71
+ *
72
+ * ### On a column group reference:
73
+ *
74
+ *
75
+ *
76
+ *
77
+ * [columnGroup][org.jetbrains.kotlinx.dataframe.documentation.UsageTemplateColumnsSelectionDsl.UsageTemplate.ColumnGroupDef]
78
+ *
79
+ *
80
+ *
81
+ *
82
+ *
83
+ *
84
+ *
85
+ *
86
+ *
87
+ *
88
+ *
89
+ */
90
+ public interface Usage
91
+
28
92
// /** TODO tbd */
29
93
// @Suppress("UNCHECKED_CAST")
30
94
// public fun <C> ColumnSet<C>.colsExcept(predicate: ColumnFilter<C>): TransformableColumnSet<C> =
@@ -38,15 +102,15 @@ public interface AllExceptColumnsSelectionDsl<out T> {
38
102
39
103
// region deprecated and experiments
40
104
41
- // public operator fun ColumnReference<*>.not(): ColumnSet<Any?> =
42
- // with(this@AllExceptColumnsSelectionDsl as ColumnsSelectionDsl<T>) {
43
- // allExcept(this@not)
44
- // }
45
- //
46
- // public operator fun ColumnSet<*>.not(): ColumnSet<Any?> =
47
- // with(this@AllExceptColumnsSelectionDsl as ColumnsSelectionDsl<T>) {
48
- // allExcept(this@not)
49
- // }
105
+ public operator fun ColumnReference <* >.not (): ColumnSet <Any ?> =
106
+ with (this @AllExceptColumnsSelectionDsl as ColumnsSelectionDsl <T >) {
107
+ allExcept(this @not)
108
+ }
109
+
110
+ public operator fun ColumnSet <* >.not (): ColumnSet <Any ?> =
111
+ with (this @AllExceptColumnsSelectionDsl as ColumnsSelectionDsl <T >) {
112
+ allExcept(this @not)
113
+ }
50
114
51
115
public infix fun <C > ColumnSet<C>.oldExcept (other : ColumnsResolver <* >): ColumnSet <C > =
52
116
createColumnSet { context ->
0 commit comments