liminal
11/19/2017, 2:18 PMfun isValid(): Boolean = noteText.isNotEmpty() && noteText.isNotBlank() && noteText.length > 3 to avoid repeating noteText several times? thanksbdawg.io
11/20/2017, 3:56 AMnoteText from being repeated, there’s always noteText.run {
isNotEmpty() && isNotBlank() && length > 3
}kirillrakhman
11/20/2017, 8:51 AMisNotBlank imply isNotEmpty?skennedy
11/20/2017, 7:04 PMskennedy
11/20/2017, 7:05 PMisNotEmpty() is literally length > 0, so it makes no sense to have a length check as well anywaybdawg.io
11/21/2017, 12:14 AMtrim() solution is as literal in a single expression as it getskirillrakhman
11/21/2017, 8:33 AMtrim() is allocating which is suboptimal