On 28/04/2015, at 11:36 PM, john skaller wrote:
> I'm giving up: I'm defining it directly in the compiler.
This now works:
////////////////
fun f (x:int) : int => x + 1;
fun g (x:int): string => x.str+"!";
fun h (x:double) :string => x.str+"!";
var fgx = \prod (f,g,h);
println$ fgx (1,2,3.1);
/////////////
Result:
(2, 2!, 3.1!)
I still have to do dup, sums, etc.
\prod (f,g) is the same as f \times g.
However
var tup = f,g,h;
var fgh = \prod tup;
works with the new code, the only way to write that with \times and \otimes is
tup.0 \otimes (tup.1 \times tup.2)
--
john skaller
[email protected]
http://felix-lang.org
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Felix-language mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/felix-language