[erlang-questions] specs for fixed length lists
Daniel Goertzen
daniel.goertzen@REDACTED
Mon Jul 9 21:59:40 CEST 2012
On Sun, Jul 8, 2012 at 1:22 AM, <ok@REDACTED> wrote:
> I'm with /Joe on this one. There aren't all _that_ many
> list operations that make sense on tuples, and
> map4(F, {A,B,C,D}) -> {F(A), F(B), F(C), F(D)}.
> is easy enough to define. Perhaps the code needs turning
> inside out.
>
>
Thanks for the idea; my functional instincts are still developing. I will
go with this approach since my sequence size really is only 4.
Dan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120709/5bfacdd3/attachment.htm>
More information about the erlang-questions
mailing list