-
Notifications
You must be signed in to change notification settings - Fork 13
runtime: zip #127
Comments
In the lisp way the right is: Or can be like Clojure: That is needed for the language decide when evaluate a parameter as a function call or as an simple data list. In your example: (1 2 3) is an list or the funcion "1" applied on parameters 2 and 3? And how does works an form like (get-data "sample 1" 300) used as an zip function parameter? |
Another solution is always use an function as list constructor when an list is needed. Like: The "list" word/function can be replaced by "array". |
About lists, if the first element is not a function or lambda we can assume that it is just a list. |
So it will be impossible to declare one list of functions or lambdas? |
We will follow the same run of Go, array serves for both approach (Array and list) |
@trumae I do not know if I understood correctly, but to declare an array of functions just put the word "array" at the beginning. |
That solution is good. But the (zip (array 1 2) (array 3 4)) is different
of avelino's examples. My problem is with the solution using inference to
decide between data list or function call.
Regards,
Vinicius
2018-02-13 23:20 GMT-02:00 Cesar Gimenes <notifications@github.com>:
… @trumae <https://github.com/trumae> I do not know if I understood
correctly, but to declare an array of functions just put the word "array"
at the beginning.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#127 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAHgFsX_OS7WaNcDvU8PaXwwpIsnrTbWks5tUjTLgaJpZM4SDzfw>
.
--
/*__ ____ _____ __ */ float e,a,b,c,d;main(i){for(;b<4;b+=.1){for(a=0;
/*\ \ / /\ \ / /| \/ |*/ a<4;a+=.06){c=d=0;for(i=99;--i&&c*c+d*d<4;)e=c*c
/* \ V / \ V / | |\/| |*/ -d*d+a-2,d=2*c*d+b-2,c=e;putchar("X =."[i&3]);}
/* \_/ \_/ |_| |_|<trumae@gmail.com> */ puts("");}}
|
used |
The text was updated successfully, but these errors were encountered: