1 2 3 4
def transact( objs, actions ) return true if objs.empty? ...
Ruby On Code transactions
by Wolfbyte,
August 20, 2008 09:01
1 2 3
def transact( objs, actions ) (objs.empty? or (objs[0].send(actions[0]) and transact(objs[1..-1],actions) )) or (objs[0].send(actions[1]) and false) end
1 2 3 4
require 'rexml/document' class REXML::Elements ...
Ruby On cleaner way to limit result...
by Wolfbyte,
July 15, 2008 05:43
Be wary of converting it to...
1 2 3 4
public static string AsCommaSeparatedValues<T>(this IEnumerable<T> items, Func<T, string> translator) { return items.Select(translator).AsCommaSeparatedValues(); ...
C# On Traversing a List and colle...
by Wolfbyte,
July 10, 2008 08:22
Curses! I wasn't logged in ...

This version behaves in muc...