1///|
2pub struct Figure {
3 priv @python.PyObject
obj : struct @python.PyObject {
// private fields
}
PyObject
4}
5
6///|
7pub fn (self : Figure) -> Unit
elim(Figure
self : struct Figure {
obj: @python.PyObject
// private fields
}
Figure) -> Unit
Unit {
8 (t : @python.PyObject) -> Unit
Evaluates an expression and discards its result. This is useful when you want
to execute an expression for its side effects but don't care about its return
value, or when you want to explicitly indicate that a value is intentionally
unused.
Parameters:
value : The value to be ignored. Can be of any type.
Example:
test "ignore" {
let x = 42
ignore(x) // Explicitly ignore the value
let mut sum = 0
ignore([1, 2, 3].iter().each(fn(x) { sum = sum + x })) // Ignore the Unit return value of each()
}
ignore(Figure
self.@python.PyObject
obj)
9}
10