Skip to content

Instantly share code, notes, and snippets.

View aycabta's full-sized avatar
💭
🏴‍☠️

aycabta aycabta

💭
🏴‍☠️
  • Space Pirates, LLC.
View GitHub Profile
class GreatName
@@nouns = {
egg: '卵',
bag: 'カバン',
rose: 'バラ',
chair: 'いす',
bat: 'バット',
fish: '魚',
notebook: 'ノート',
pencil: '鉛筆',
@aycabta
aycabta / moge.rb
Last active December 21, 2015 20:39 — forked from supermomonga/moge.rb
require 'rspec'
def cloop(*params, &block)
r = ->(*xs){ block.(r, *xs) }
r.(*params)
end
def map(xs, &block)
cloop([], xs){ |r, nxs, x|
if x == []