Close
Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

LABS
[Standup][SF] 04/10/12 – Mind the gap

Interestings:

  • Spacing matters. Leaving a space after a minus and before a number is entirely different from putting the minus right before the number. The former is binary arithmetic and the latter is a unary operator. For example:

    [-1, 1, 2, 3].count - 1 #=> 3 (subtracting 1 from the array size)
    [-1, 1, 2, 3].count -1 #=> 1 (counting the number of occurrences of -1 in the array)
    

Comments
Post a Comment

Your Information (Name required. Email address will not be displayed with comment.)

* Copy This Password *

* Type Or Paste Password Here *