The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Smalltalk Daily 8/01/07: Numeric Collections

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Smalltalk Daily 8/01/07: Numeric Collections Posted: Aug 1, 2007 11:11 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Smalltalk Daily 8/01/07: Numeric Collections
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

On today's Smalltalk Daily, we take a look at the package NumericCollections from the Public Store Repository. Here's part of the package comment for context:

NumericCollections adds the four basic numeric methods (+, -, *, /) to collections as well as some other methods that come as a natural follow on.

Collections can be sent any of the four basic math messages. And you can make collections be the arguments too. Some examples:


#(1 2 3 4) + #(5 6 7 8) --> #(6 8 10 12)

(Bag with: 2 with: 2 with: 6) / -2 --> Bag (-3 -1 -1)

Well worth looking at and playing with for ideas - and a neat extension to the system.

Technorati Tags: ,

Read: Smalltalk Daily 8/01/07: Numeric Collections

Topic: The New New Literary Criticism Previous Topic   Next Topic Topic: Incompetent Lawyers make for bad PR

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use