Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 420 Bytes

consider-using-set-comprehension.md

File metadata and controls

11 lines (6 loc) · 420 Bytes

Pattern: Missing use of set comprehension

Issue: -

Description

Although there is nothing syntactically wrong with this code, it is hard to read and can be simplified to a set comprehension. Also it is faster since you don't need to create another transient list.

Further Reading