by MathMonkeyMan · 2y ago · 0 comments
The lapping cat operator is truly inspired. Being a sucker for for pattern matching, I'm more likely to write
foo, = seq
or foo, *_ = seq
than assert len(seq) == 1
foo = seq[0]
or foo = seq[0]
Though I vaguely call past colleagues disagreeing, or at least insisting on parens around the "foo," in the first one.No comments yet.