named parameters for functions with defaults

9 views
Skip to first unread message

Răzvan Rotaru

unread,
Jan 6, 2015, 1:41:49 PM1/6/15
to yeti...@googlegroups.com
Hi,

I am seeking a way to have named parameters with default values in yeti. Intuitively, structures are good for that:

> myfun {a,b} = a+b
myfun
is {.a is number, .b is number} -> number = <code$myfun>
> myfun {a=10,b=11}
21 is number

But how can I have default values for those parameters?

Razvan
Reply all
Reply to author
Forward
0 new messages