Visibility

Use pub for API declarations, internal for module access, and private for local implementation.

Counter.kalm kalm
pub class Counter:
    private var value: Int = 0
    protected fun current() -> Int = value
    pub fun increment() -> Int:
        value += 1
        return value

internal fun defaultValue() -> Int = 0

Learn more.