Bruce,

I don't have a canned answer for you.  However, on RosettaCode.org there are a 
number of tasks that have been solved in Icon/Unicon that can also be solved 
with lambda expressions.

Google lambda site:rosettacode.org and you should find a number of examples.

I know the Y-combinator hasn't been solved.


If no one has something better this resource may help.



David




>________________________________
> From: Bruce & Breeanna Rennie <[email protected]>
>To: [email protected] 
>Sent: Friday, December 9, 2011 5:03:55 AM
>Subject: [Unicon-group] What is the idiomatic way to represent Lambda function 
>in Icon/Unicon
> 
>Gentlemen and Ladies,
>
>I am looking at translating some scheme code to Unicon. However, there 
>are a number of places where lambda expressions are used in the code. An 
>example is the following code snippet
>
>#(define map-eval
>#  (lambda (operand-tree env context applicative)
>#    (if (not (kernel-list? operand-tree))
>#        (error-pass
>#          (make-error-descriptor
>#            (list "Operand tree not a list, passed to "
>#                  (describe-object applicative)))
>#          context)
>#        (simple-map
>#::
>#          (lambda (operand) (eval operand env context))
>#;;
>#          operand-tree))))
>#
>
>The specific segment is marked between the #:: rows.
>
>What suggestions are there to convert this to idiomatic Unicon code. 
>Including using co-expressions etc.
>
>regards
>
>Bruce Rennie
>
>
>
>
>
>
>
>------------------------------------------------------------------------------
>Cloud Services Checklist: Pricing and Packaging Optimization
>This white paper is intended to serve as a reference, checklist and point of 
>discussion for anyone considering optimizing the pricing and packaging model 
>of a cloud services business. Read Now!
>http://www.accelacomm.com/jaw/sfnl/114/51491232/
>_______________________________________________
>Unicon-group mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/unicon-group
>
>
>
------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
Unicon-group mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to