Skip to content

Cell

A single value in a table.

This class cannot be instantiated directly. It is only used for arguments of callbacks.

Type parameters:

Name Upper Bound Description Default
T Any? - Any?
Stub code in Cell.sdsstub

  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
class Cell<out T = Any?> {
    /**
     * Namespace for operations on strings.
     */
    attr str: StringCell
    /**
     * Namespace for operations on date time values.
     */
    @Experimental
    attr dt: TemporalCell

    /**
     * Return the first cell from the given list that is not None.
     *
     * @param cells The list of cells to be searched.
     *
     * @result cell Returns the contents of the first cell that is not None.
     * If all cells in the list are None or the list is empty returns None.
     */
    @Pure
    @PythonName("first_not_none")
    static fun firstNotNone<T>(
        cells: List<Cell<T>>
    ) -> cell: Cell<T?>

    /**
     * Negate a boolean. This is equivalent to the `not` operator.
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [true, false]);
     *     val result = column.transform((cell) -> cell.^not());
     *     // Column("example", [false, true])
     * }
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [true, false]);
     *     val result = column.transform((cell) -> not cell);
     *     // Column("example", [false, true])
     * }
     */
    @Pure
    @PythonName("not_")
    fun ^not() -> result: Cell<Boolean>

    /**
     * Perform a boolean AND operation. This is equivalent to the `and` operator.
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [true, false]);
     *     val result = column.transform((cell) -> cell.^and(false));
     *     // Column("example", [false, false])
     * }
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [true, false]);
     *     val result = column.transform((cell) -> cell and false);
     *     // Column("example", [false, false])
     * }
     */
    @Pure
    @PythonName("and_")
    fun ^and(
        other: union<Boolean, Cell> // TODO, once cell types can be inferred: union<Boolean, Cell<Boolean>>
    ) -> result: Cell<Boolean>

    /**
     * Perform a boolean OR operation. This is equivalent to the `or` operator.
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [true, false]);
     *     val result = column.transform((cell) -> cell.^or(true));
     *     // Column("example", [true, true])
     * }
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [true, false]);
     *     val result = column.transform((cell) -> cell or true);
     *     // Column("example", [true, true])
     * }
     */
    @Pure
    @PythonName("or_")
    fun ^or(
        other: union<Boolean, Cell> // TODO, once cell types can be inferred: union<Boolean, Cell<Boolean>>
    ) -> result: Cell<Boolean>

    /**
     * Perform a boolean XOR operation.
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [true, false]);
     *     val result = column.transform((cell) -> cell.xor(true));
     *     // Column("example", [false, true])
     * }
     */
    @Pure
    fun xor(
        other: union<Boolean, Cell> // TODO, once cell types can be inferred: union<Boolean, Cell<Boolean>>
    ) -> result: Cell<Boolean>

    /**
     * Get the absolute value.
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [1, -2]);
     *     val result = column.transform((cell) -> cell.abs());
     *     // Column("example", [1, 2])
     * }
     */
    @Pure
    fun abs() -> result: Cell<Number>

    /**
     * Round up to the nearest integer.
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [1.1, 2.9]);
     *     val result = column.transform((cell) -> cell.ceil());
     *     // Column("example", [2, 3])
     * }
     */
    @Pure
    fun ceil() -> result: Cell<Int>

    /**
     * Round down to the nearest integer.
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [1.1, 2.9]);
     *     val result = column.transform((cell) -> cell.floor());
     *     // Column("example", [1, 2])
     * }
     */
    @Pure
    fun floor() -> result: Cell<Int>

    /**
     * Negate the value. This is equivalent to the unary `-` operator.
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [1, -2]);
     *     val result = column.transform((cell) -> cell.neg());
     *     // Column("example", [-1, 2])
     * }
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [1, -2]);
     *     val result = column.transform((cell) -> -cell);
     *     // Column("example", [-1, 2])
     * }
     */
    @Pure
    fun neg() -> result: Cell<Number>

    /**
     * Add a value. This is equivalent to the `+` operator.
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [1, 2]);
     *     val result = column.transform((cell) -> cell.add(3));
     *     // Column("example", [4, 5])
     * }
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [1, 2]);
     *     val result = column.transform((cell) -> cell + 3);
     *     // Column("example", [4, 5])
     * }
     */
    @Pure
    fun add(
        other: union<Number, Cell> // TODO, once cell types can be inferred: union<Number, Cell<Number>>
    ) -> result: Cell<Number>

    /**
     * Divide by a value. This is equivalent to the `/` operator.
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [6, 8]);
     *     val result = column.transform((cell) -> cell.div(2));
     *     // Column("example", [3, 4])
     * }
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [6, 8]);
     *     val result = column.transform((cell) -> cell / 2);
     *     // Column("example", [3, 4])
     * }
     */
    @Pure
    fun div(
        other: union<Number, Cell> // TODO, once cell types can be inferred: union<Number, Cell<Number>>
    ) -> result: Cell<Number>

    /**
     * Perform a modulo operation.  This is equivalent to the `%` operator.
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [5, 6]);
     *     val result = column.transform((cell) -> cell.mod(3));
     *     // Column("example", [2, 0])
     * }
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [5, 6]);
     *     val result = column.transform((cell) -> cell % 3);
     *     // Column("example", [2, 0])
     * }
     */
    @Pure
    fun mod(
        other: union<Number, Cell> // TODO, once cell types can be inferred: union<Number, Cell<Number>>
    ) -> result: Cell<Number>

    /**
     * Multiply by a value. This is equivalent to the `*` operator.
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [2, 3]);
     *     val result = column.transform((cell) -> cell.mul(4));
     *     // Column("example", [8, 12])
     * }
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [2, 3]);
     *     val result = column.transform((cell) -> cell * 4);
     *     // Column("example", [8, 12])
     * }
     */
    @Pure
    fun mul(
        other: union<Number, Cell> // TODO, once cell types can be inferred: union<Number, Cell<Number>>
    ) -> result: Cell<Number>

    /**
     * Raise to a power.
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [2, 3]);
     *     val result = column.transform((cell) -> cell.pow(3.0));
     *     // Column("example", [8, 27])
     * }
     */
    @Pure
    fun pow(
        other: union<Number, Cell> // TODO, once cell types can be inferred: union<Number, Cell<Number>>
    ) -> result: Cell<Number>

    /**
     * Subtract a value. This is equivalent to the binary `-` operator.
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [5, 6]);
     *     val result = column.transform((cell) -> cell.^sub(3));
     *     // Column("example", [2, 3])
     * }
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [5, 6]);
     *     val result = column.transform((cell) -> cell - 3);
     *     // Column("example", [2, 3])
     * }
     */
    @Pure
    fun ^sub(
        other: union<Number, Cell> // TODO, once cell types can be inferred: union<Number, Cell<Number>>
    ) -> result: Cell<Number>

    /**
     * Check if equal to a value. This is equivalent to the `==` operator.
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [1, 2]);
     *     val result = column.transform((cell) -> cell.eq(2));
     *     // Column("example", [false, true])
     * }
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [1, 2]);
     *     val result = column.transform((cell) -> cell == 2);
     *     // Column("example", [false, true])
     * }
     */
    @Pure
    fun eq(
        other: Any?
    ) -> result: Cell<Boolean>

    /**
     * Check if not equal to a value. This is equivalent to the `!=` operator.
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [1, 2]);
     *     val result = column.transform((cell) -> cell.neq(2));
     *     // Column("example", [true, false])
     * }
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [1, 2]);
     *     val result = column.transform((cell) -> cell != 2);
     *     // Column("example", [true, false])
     * }
     */
    @Pure
    fun neq(
        other: Any?
    ) -> result: Cell<Boolean>

    /**
     * Check if greater than or equal to a value. This is equivalent to the `>=` operator.
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [1, 2]);
     *     val result = column.transform((cell) -> cell.ge(2));
     *     // Column("example", [false, true])
     * }
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [1, 2]);
     *     val result = column.transform((cell) -> cell >= 2);
     *     // Column("example", [false, true])
     * }
     */
    @Pure
    fun ge(
        other: union<Number, Cell> // TODO, once cell types can be inferred: union<Number, Cell<Number>>
    ) -> result: Cell<Boolean>

    /**
     * Check if greater than a value. This is equivalent to the `>` operator.
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [1, 2]);
     *     val result = column.transform((cell) -> cell.gt(2));
     *     // Column("example", [false, false])
     * }
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [1, 2]);
     *     val result = column.transform((cell) -> cell > 2);
     *     // Column("example", [false, false])
     * }
     */
    @Pure
    fun gt(
        other: union<Number, Cell> // TODO, once cell types can be inferred: union<Number, Cell<Number>>
    ) -> result: Cell<Boolean>

    /**
     * Check if less than or equal to a value. This is equivalent to the `<=` operator.
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [1, 2]);
     *     val result = column.transform((cell) -> cell.le(2));
     *     // Column("example", [true, true])
     * }
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [1, 2]);
     *     val result = column.transform((cell) -> cell <= 2);
     *     // Column("example", [true, true])
     * }
     */
    @Pure
    fun le(
        other: union<Number, Cell> // TODO, once cell types can be inferred: union<Number, Cell<Number>>
    ) -> result: Cell<Boolean>

    /**
     * Check if less than a value. This is equivalent to the `<` operator.
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [1, 2]);
     *     val result = column.transform((cell) -> cell.lt(2));
     *     // Column("example", [true, false])
     * }
     *
     * @example
     * pipeline example {
     *     val column = Column("example", [1, 2]);
     *     val result = column.transform((cell) -> cell < 2);
     *     // Column("example", [true, false])
     * }
     */
    @Pure
    fun lt(
        other: union<Number, Cell> // TODO, once cell types can be inferred: union<Number, Cell<Number>>
    ) -> result: Cell<Boolean>
}

🧪 dt

Namespace for operations on date time values.

Type: TemporalCell

str

Namespace for operations on strings.

Type: StringCell

abs

Get the absolute value.

Results:

Name Type Description
result Cell<Number> -

Examples:

pipeline example {
    val column = Column("example", [1, -2]);
    val result = column.transform((cell) -> cell.abs());
    // Column("example", [1, 2])
}
Stub code in Cell.sdsstub

@Pure
fun abs() -> result: Cell<Number>

add

Add a value. This is equivalent to the + operator.

Parameters:

Name Type Description Default
other union<Number, Cell<Any?>> - -

Results:

Name Type Description
result Cell<Number> -

Examples:

pipeline example {
    val column = Column("example", [1, 2]);
    val result = column.transform((cell) -> cell.add(3));
    // Column("example", [4, 5])
}
pipeline example {
    val column = Column("example", [1, 2]);
    val result = column.transform((cell) -> cell + 3);
    // Column("example", [4, 5])
}

Stub code in Cell.sdsstub

@Pure
fun add(
    other: union<Number, Cell> // TODO, once cell types can be inferred: union<Number, Cell<Number>>
) -> result: Cell<Number>

and

Perform a boolean AND operation. This is equivalent to the and operator.

Parameters:

Name Type Description Default
other union<Boolean, Cell<Any?>> - -

Results:

Name Type Description
result Cell<Boolean> -

Examples:

pipeline example {
    val column = Column("example", [true, false]);
    val result = column.transform((cell) -> cell.^and(false));
    // Column("example", [false, false])
}
pipeline example {
    val column = Column("example", [true, false]);
    val result = column.transform((cell) -> cell and false);
    // Column("example", [false, false])
}

Stub code in Cell.sdsstub

@Pure
@PythonName("and_")
fun ^and(
    other: union<Boolean, Cell> // TODO, once cell types can be inferred: union<Boolean, Cell<Boolean>>
) -> result: Cell<Boolean>

ceil

Round up to the nearest integer.

Results:

Name Type Description
result Cell<Int> -

Examples:

pipeline example {
    val column = Column("example", [1.1, 2.9]);
    val result = column.transform((cell) -> cell.ceil());
    // Column("example", [2, 3])
}
Stub code in Cell.sdsstub

@Pure
fun ceil() -> result: Cell<Int>

div

Divide by a value. This is equivalent to the / operator.

Parameters:

Name Type Description Default
other union<Number, Cell<Any?>> - -

Results:

Name Type Description
result Cell<Number> -

Examples:

pipeline example {
    val column = Column("example", [6, 8]);
    val result = column.transform((cell) -> cell.div(2));
    // Column("example", [3, 4])
}
pipeline example {
    val column = Column("example", [6, 8]);
    val result = column.transform((cell) -> cell / 2);
    // Column("example", [3, 4])
}

Stub code in Cell.sdsstub

@Pure
fun div(
    other: union<Number, Cell> // TODO, once cell types can be inferred: union<Number, Cell<Number>>
) -> result: Cell<Number>

eq

Check if equal to a value. This is equivalent to the == operator.

Parameters:

Name Type Description Default
other Any? - -

Results:

Name Type Description
result Cell<Boolean> -

Examples:

pipeline example {
    val column = Column("example", [1, 2]);
    val result = column.transform((cell) -> cell.eq(2));
    // Column("example", [false, true])
}
pipeline example {
    val column = Column("example", [1, 2]);
    val result = column.transform((cell) -> cell == 2);
    // Column("example", [false, true])
}

Stub code in Cell.sdsstub

@Pure
fun eq(
    other: Any?
) -> result: Cell<Boolean>

floor

Round down to the nearest integer.

Results:

Name Type Description
result Cell<Int> -

Examples:

pipeline example {
    val column = Column("example", [1.1, 2.9]);
    val result = column.transform((cell) -> cell.floor());
    // Column("example", [1, 2])
}
Stub code in Cell.sdsstub

@Pure
fun floor() -> result: Cell<Int>

ge

Check if greater than or equal to a value. This is equivalent to the >= operator.

Parameters:

Name Type Description Default
other union<Number, Cell<Any?>> - -

Results:

Name Type Description
result Cell<Boolean> -

Examples:

pipeline example {
    val column = Column("example", [1, 2]);
    val result = column.transform((cell) -> cell.ge(2));
    // Column("example", [false, true])
}
pipeline example {
    val column = Column("example", [1, 2]);
    val result = column.transform((cell) -> cell >= 2);
    // Column("example", [false, true])
}

Stub code in Cell.sdsstub

@Pure
fun ge(
    other: union<Number, Cell> // TODO, once cell types can be inferred: union<Number, Cell<Number>>
) -> result: Cell<Boolean>

gt

Check if greater than a value. This is equivalent to the > operator.

Parameters:

Name Type Description Default
other union<Number, Cell<Any?>> - -

Results:

Name Type Description
result Cell<Boolean> -

Examples:

pipeline example {
    val column = Column("example", [1, 2]);
    val result = column.transform((cell) -> cell.gt(2));
    // Column("example", [false, false])
}
pipeline example {
    val column = Column("example", [1, 2]);
    val result = column.transform((cell) -> cell > 2);
    // Column("example", [false, false])
}

Stub code in Cell.sdsstub

@Pure
fun gt(
    other: union<Number, Cell> // TODO, once cell types can be inferred: union<Number, Cell<Number>>
) -> result: Cell<Boolean>

le

Check if less than or equal to a value. This is equivalent to the <= operator.

Parameters:

Name Type Description Default
other union<Number, Cell<Any?>> - -

Results:

Name Type Description
result Cell<Boolean> -

Examples:

pipeline example {
    val column = Column("example", [1, 2]);
    val result = column.transform((cell) -> cell.le(2));
    // Column("example", [true, true])
}
pipeline example {
    val column = Column("example", [1, 2]);
    val result = column.transform((cell) -> cell <= 2);
    // Column("example", [true, true])
}

Stub code in Cell.sdsstub

@Pure
fun le(
    other: union<Number, Cell> // TODO, once cell types can be inferred: union<Number, Cell<Number>>
) -> result: Cell<Boolean>

lt

Check if less than a value. This is equivalent to the < operator.

Parameters:

Name Type Description Default
other union<Number, Cell<Any?>> - -

Results:

Name Type Description
result Cell<Boolean> -

Examples:

pipeline example {
    val column = Column("example", [1, 2]);
    val result = column.transform((cell) -> cell.lt(2));
    // Column("example", [true, false])
}
pipeline example {
    val column = Column("example", [1, 2]);
    val result = column.transform((cell) -> cell < 2);
    // Column("example", [true, false])
}

Stub code in Cell.sdsstub

@Pure
fun lt(
    other: union<Number, Cell> // TODO, once cell types can be inferred: union<Number, Cell<Number>>
) -> result: Cell<Boolean>

mod

Perform a modulo operation. This is equivalent to the % operator.

Parameters:

Name Type Description Default
other union<Number, Cell<Any?>> - -

Results:

Name Type Description
result Cell<Number> -

Examples:

pipeline example {
    val column = Column("example", [5, 6]);
    val result = column.transform((cell) -> cell.mod(3));
    // Column("example", [2, 0])
}
pipeline example {
    val column = Column("example", [5, 6]);
    val result = column.transform((cell) -> cell % 3);
    // Column("example", [2, 0])
}

Stub code in Cell.sdsstub

@Pure
fun mod(
    other: union<Number, Cell> // TODO, once cell types can be inferred: union<Number, Cell<Number>>
) -> result: Cell<Number>

mul

Multiply by a value. This is equivalent to the * operator.

Parameters:

Name Type Description Default
other union<Number, Cell<Any?>> - -

Results:

Name Type Description
result Cell<Number> -

Examples:

pipeline example {
    val column = Column("example", [2, 3]);
    val result = column.transform((cell) -> cell.mul(4));
    // Column("example", [8, 12])
}
pipeline example {
    val column = Column("example", [2, 3]);
    val result = column.transform((cell) -> cell * 4);
    // Column("example", [8, 12])
}

Stub code in Cell.sdsstub

@Pure
fun mul(
    other: union<Number, Cell> // TODO, once cell types can be inferred: union<Number, Cell<Number>>
) -> result: Cell<Number>

neg

Negate the value. This is equivalent to the unary - operator.

Results:

Name Type Description
result Cell<Number> -

Examples:

pipeline example {
    val column = Column("example", [1, -2]);
    val result = column.transform((cell) -> cell.neg());
    // Column("example", [-1, 2])
}
pipeline example {
    val column = Column("example", [1, -2]);
    val result = column.transform((cell) -> -cell);
    // Column("example", [-1, 2])
}

Stub code in Cell.sdsstub

@Pure
fun neg() -> result: Cell<Number>

neq

Check if not equal to a value. This is equivalent to the != operator.

Parameters:

Name Type Description Default
other Any? - -

Results:

Name Type Description
result Cell<Boolean> -

Examples:

pipeline example {
    val column = Column("example", [1, 2]);
    val result = column.transform((cell) -> cell.neq(2));
    // Column("example", [true, false])
}
pipeline example {
    val column = Column("example", [1, 2]);
    val result = column.transform((cell) -> cell != 2);
    // Column("example", [true, false])
}

Stub code in Cell.sdsstub

@Pure
fun neq(
    other: Any?
) -> result: Cell<Boolean>

not

Negate a boolean. This is equivalent to the not operator.

Results:

Name Type Description
result Cell<Boolean> -

Examples:

pipeline example {
    val column = Column("example", [true, false]);
    val result = column.transform((cell) -> cell.^not());
    // Column("example", [false, true])
}
pipeline example {
    val column = Column("example", [true, false]);
    val result = column.transform((cell) -> not cell);
    // Column("example", [false, true])
}

Stub code in Cell.sdsstub

@Pure
@PythonName("not_")
fun ^not() -> result: Cell<Boolean>

or

Perform a boolean OR operation. This is equivalent to the or operator.

Parameters:

Name Type Description Default
other union<Boolean, Cell<Any?>> - -

Results:

Name Type Description
result Cell<Boolean> -

Examples:

pipeline example {
    val column = Column("example", [true, false]);
    val result = column.transform((cell) -> cell.^or(true));
    // Column("example", [true, true])
}
pipeline example {
    val column = Column("example", [true, false]);
    val result = column.transform((cell) -> cell or true);
    // Column("example", [true, true])
}

Stub code in Cell.sdsstub

@Pure
@PythonName("or_")
fun ^or(
    other: union<Boolean, Cell> // TODO, once cell types can be inferred: union<Boolean, Cell<Boolean>>
) -> result: Cell<Boolean>

pow

Raise to a power.

Parameters:

Name Type Description Default
other union<Number, Cell<Any?>> - -

Results:

Name Type Description
result Cell<Number> -

Examples:

pipeline example {
    val column = Column("example", [2, 3]);
    val result = column.transform((cell) -> cell.pow(3.0));
    // Column("example", [8, 27])
}
Stub code in Cell.sdsstub

@Pure
fun pow(
    other: union<Number, Cell> // TODO, once cell types can be inferred: union<Number, Cell<Number>>
) -> result: Cell<Number>

sub

Subtract a value. This is equivalent to the binary - operator.

Parameters:

Name Type Description Default
other union<Number, Cell<Any?>> - -

Results:

Name Type Description
result Cell<Number> -

Examples:

pipeline example {
    val column = Column("example", [5, 6]);
    val result = column.transform((cell) -> cell.^sub(3));
    // Column("example", [2, 3])
}
pipeline example {
    val column = Column("example", [5, 6]);
    val result = column.transform((cell) -> cell - 3);
    // Column("example", [2, 3])
}

Stub code in Cell.sdsstub

@Pure
fun ^sub(
    other: union<Number, Cell> // TODO, once cell types can be inferred: union<Number, Cell<Number>>
) -> result: Cell<Number>

xor

Perform a boolean XOR operation.

Parameters:

Name Type Description Default
other union<Boolean, Cell<Any?>> - -

Results:

Name Type Description
result Cell<Boolean> -

Examples:

pipeline example {
    val column = Column("example", [true, false]);
    val result = column.transform((cell) -> cell.xor(true));
    // Column("example", [false, true])
}
Stub code in Cell.sdsstub

@Pure
fun xor(
    other: union<Boolean, Cell> // TODO, once cell types can be inferred: union<Boolean, Cell<Boolean>>
) -> result: Cell<Boolean>

firstNotNone

Return the first cell from the given list that is not None.

Parameters:

Name Type Description Default
cells List<Cell<T>> The list of cells to be searched. -

Results:

Name Type Description
cell Cell<T?> Returns the contents of the first cell that is not None. If all cells in the list are None or the list is empty returns None.

Type parameters:

Name Upper Bound Description Default
T Any? - -
Stub code in Cell.sdsstub

@Pure
@PythonName("first_not_none")
static fun firstNotNone<T>(
    cells: List<Cell<T>>
) -> cell: Cell<T?>