def hash_from_string(string, value)
hash, split = {}, string.split(".")
(split.size-1).downto(0) do |i|
...
#!/usr/bin/env ruby -w require 'rexml/document' ...
Ruby Let me merge my Tomboy notes!
Learning Ruby, and learning...
(define (compose . fns) (define (make-chain fn chain) ...
Lisp Generalised composition
by Chris Jester-Young,
April 22, 2009 04:24,
2 refactorings, tagged with functional, scheme, compose
Most people have worked wit...
#!/usr/bin/env ruby
files = ARGV.collect { |fname| File.new(fname, 'w') }
...
Ruby Randomly split input lines.
by Scott Robinson,
November 15, 2007 08:56,
2 refactorings, tagged with functional, short, oneliner, one-liner
My first Ruby script. I'm c...
# String#to_proc # # See http://weblog.raganwald.com/2007/10/stringtoproc.html ( Subscribe in a reader) ...
Ruby String#to_proc (by Reginald...
Reginald Braithwaite has a ...
the string can contain 1-n ...