Mojo function
trunc
trunc[T: Truncable, //](value: T) -> $0
Get the truncated value of the given object.
Parameters:
- T (
Truncable
): The type conforming to Truncable.
Args:
- value (
T
): The object to get the truncated value of.
Returns:
The truncated value of the object.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
😔 What went wrong?