[ create a new paste ] login | about

salai

Name:
Email:
Site/Blog:
Location:
Default language:
Favorite languages:
About:

Saved pastes by salai:

Ruby, pasted on Oct 27:
1
2
3
4
5
class Array
  def largest_int
  res = 0
  self.each{|elem|
    if elem.kind_of?(Array)
...
view (15 lines, 1 line of output)
Ruby, pasted on Oct 26:
1
2
3
4
5
class Hash
	def hash_revert
		hash_new = Hash.new
		self.each {|key,value|
			if not hash_new.has_key?(key) then hash_new[value] = key end
...
view (12 lines, 1 line of output)
Ruby, pasted on Oct 26:
1
2
3
4
class Array
def array_leave1 # sum_of_array?
res = 0
   self.each{|elem|
...
view (27 lines, 1 line of output)