Sha256: 6bb47e4795b5fbe7461f71fddb9b0c599da86e719ebf9f9bbf76648e5e44e022
Contents?: true
Size: 856 Bytes
Versions: 2
Compression:
Stored size: 856 Bytes
Contents
#!/usr/bin/ruby # Copyright (c) 2007, Lin Jen-Shin(a.k.a. godfat 真常) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. begin require_ludy 'lazy' rescue NameError raise LoadError.new('please require "ludy" first') end module Ludy Y = lambda{|f| lambda{|x| lazy{f[x[x]]} }[lambda{|x| lazy{f[x[x]]} }] } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ludy-0.0.1 | lib/ludy/y_combinator.rb |
ludy-0.0.2 | lib/ludy/y_combinator.rb |