Skip to content

🧪 Impure

The function has side effects and/or does not always return the same results given the same arguments.

Parameters:

Name Type Description Default
allReasons List<ImpurityReason> A list of all reasons why the function is impure. If no specific ImpurityReason applies, include ImpurityReason.Other. -

Targets:

  • Function
Stub code in purity.sdsstub

@Experimental
@Targets([AnnotationTarget.Function])
annotation Impure(allReasons: List<ImpurityReason>)