In the Kyo framework, a common and fundamental operation is the transformation of a simple value A into an effectful value A < S. This process, known as "lifting," allows a plain value to be seamlessly integrated into Kyo's effect system. While this can be done explicitly, it is most often handled implicitly by the Kyo compiler, which makes for cleaner and more concise code.
The most direct way to lift a value is by using the Kyo.lift function. This function takes a value and wraps it in a Kyo effect type.
val v1: Int < Any = Kyo.lift(1)