Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: take a sequence of numbers 2 at a time, print numbers and their product?

5 views
Skip to first unread message

WJ

unread,
Jul 24, 2016, 4:36:44 PM7/24/16
to
Why this is marked as abuse? It has been marked as abuse.
Report not abuse
Mark Tarver wrote:

> > The simple fact is that a loop form will
> > beat any other syntax hands down in terms of succinctness and
> > clarity
>
> In a modern FPL not always and not here.
>
> (define pp
> [X Y | Z] -> (do (output "~A x ~A = ~A~%" X Y (* X Y)) (pp Z))
> _ -> _)

R:

pp = function(nums)
do.call(function(a,b,...) if (!missing(b)) {cat(a,"*",b,"=",a*b,"\n")
Recall(...)},
nums)

pp(list(2,3, 4,5, 8,9))

2 * 3 = 6
4 * 5 = 20
8 * 9 = 72

--
In Sweden one liberal newspaper editor responded to the latest polling triumphs
by the ... Sweden Democrats party by saying that he would be happy to flood
Sweden with Islamic State fighters to punish the ... electorate.... [M]ost
media in Sweden is Jewish-owned....
theoccidentalobserver.net/2015/11/douglas-murrays-warning-to-the-jewish-community

0 new messages