Perl 6 - part 3 - arrays, ranges

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
789 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon
  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (gabor529)

  • For anyone following along, the sequence operator, ..., has changed how it handles the end of the sequence. It is now very flexible about how the end is specified, but the example in this screencast of (1, 3 ... 10) will no longer work.

    It uses smart matching of the value against the right-hand side of the ... operator. In this example it will never be true, so an infinite list of odd numbers is created. But this works: (1, 3 ...^ * > 10); "up to but not including whatever is greater than 10".

  • @redlever Thank you for the update!

see all

All Comments (3)

Sign In or Sign Up now to post a comment!
  • Great videos

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more