new rule: Unsafe use of list[0..x] instead of take/drop
subscript operator can throw NoSuchElementException. It is better to use the take method or the drop method. if the range starts at 0 then use take or drop.
Log in to post a comment.