Paste: pseudocode

Author: littledan
Mode: factor
Date: Sat, 13 Mar 2010 22:43:55
Plain Text |
class A 
    function f(x) 
         x + 1 
 
(function(obj) obj.f(1))(new A)


class B 
    function g(f) 
        f(1) 

(new B).g(function(x) x + 1) 

Annotation: .

Author: ceninan
Mode: factor
Date: Sat, 13 Mar 2010 23:23:15
Plain Text |
class A
  f = + 1

(\obj -> obj.f 1) (new A)


class B
  g f = f 1

(new B).g (+ 1)

Annotation: more verbose

Author: ceninan
Mode: factor
Date: Sat, 13 Mar 2010 23:24:41
Plain Text |
class A
  f x = x + 1

(\obj -> obj.f 1) (new A)


class B
  g f = f 1

(new B).g (\x -> x + 1)

Annotation: modifed syntax

Author: littledan
Mode: factor
Date: Sun, 14 Mar 2010 00:05:58
Plain Text |
class A 
    function f(x) 
         return x + 1 
 
(function(obj) -> obj.f(1))(new A)


class B 
    function g(f) 
        return f(1) 

(new B).g(function(x) -> x + 1) 

New Annotation

Summary:
Author:
Mode:
Body: