Project

verstehen

0.0
No commit activity in last 3 years
No release in over 3 years
Ruby list comprehension all over your tee tahs
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme
                                  
                                  Verstehen

Verstenen is a list comprehension library for Ruby. It attemps to emulate list
comprehension teqniques from the Python programming language. 

Install:

Add the gemcutter repository to your gem sources if you have not already done so:

  sudo gem sources -a http://gemcutter.org

Install the gem from gemcutter:

  sudo gem install verstehen

Usage:

  require 'rubygems'
  require 'verstehen'

  list { x * 16 }.for(:x).in { 0..16 }.if { x % 4 == 0 }.comprehend

  => [0, 64, 128, 192, 256]




@corban                                                    weare.buildingsky.net
________________________________________________________________________________

       Copyright (c) 2009 Corban Brook, released under the MIT license