skip to main | skip to sidebar

Vectoring Ruby On Rails

My Git activity

  • alexey forked rails-authorization-plugin  - Jun 26, 2008
  • alexey deleted rails-authorization-plugin  - Jun 26, 2008
  • alexey forked rails-authorization-plugin  - Jun 26, 2008
  • alexey started watching rails-authorization-plugin  - Jun 26, 2008
  • alexey edited a page in the rails-authorization-plugin wiki  - Jun 25, 2008

09 September 2007

What is that ?

by Alexey at 13:48

Does anyone can define this function ?

range.inject(Hash.new(0)){|h,e| h[e] += 1; h}


range is array of integers like: [1,22,12,8,45,3,etc..]

 

Tags: hash, inject, solution

0 comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

JUST MARRIED

Favorites

  • Button Generator(use spaces insted of text:)
  • Paginate, Sort and Search a table
  • Ani Loading Indicators
  • Sortable List Elements

Blog Archive

  • ▼ 2008 (4)
    • ▼ June (2)
      • Authorization plugin addon
      • Colorized Wirble in windows xp
    • ► May (2)
      • Globalize in Rails 2.0 BUG
      • Regular Expression samples
  • ► 2007 (9)
    • ► November (1)
      • Encoding problems
    • ► October (2)
      • Rails 2.0 :: Debugger
      • Rails 2.0 :: Migrations
    • ► September (4)
      • Painless PNG plugin MOD
      • What is that ?
      • :conditions => ["created BETWEEN...
      • link_to_back helper
    • ► August (2)
      • Globalization AddOn Mk::2
      • Authorization Plugin

Certified

oDesk Certified Ruby on Rails Developer

WWR

Recommend Me