Icaro Temponi
02/19/2019, 1:45 PMstreetsofboston
02/19/2019, 2:38 PMif
statement, when it's false it doesn't execute the rest of your code?Icaro Temponi
02/19/2019, 3:00 PMstreetsofboston
02/19/2019, 3:12 PMNone.bind()
would work, but it looks so hacky….
What about val ret = (if (something) { my actual code ... } else { None }).bind()
? (still look hacky-ish to me 🙂 )Icaro Temponi
02/19/2019, 3:16 PMraulraja
02/19/2019, 5:57 PM