This function accepts a boolean condition and if it evaluates to false it will throw an IllegalStateException:
check(str.length > 5) { "Minimum length is 5" }
This function accepts a boolean condition and if it evaluates to false it will throw an IllegalStateException:
check(str.length > 5) { "Minimum length is 5" }
52.15.210.255