annotate tests/eargs.lac @ 241:052126db06e7

Shorthand for multi-binding exp 'fn'
author Adam Chlipala <adamc@hcoop.net>
date Thu, 28 Aug 2008 13:57:12 -0400
parents
children cc193f680193
rev   line source
adamc@241 1 val id1 = fn n : int => n
adamc@241 2 val id2 = fn n => id1 n
adamc@241 3
adamc@241 4 val pair1 = fn (t1 ::: Type) (t2 ::: Type) (x1 : t1) (x2 : t2) => (x1, x2)
adamc@241 5 val pair2 = fn (t1 ::: Type) (t2 ::: Type) (x1 : t1) (x2 : t2) () => pair1 x1 x2