X-Git-Url: https://gitweb.factorcode.org/gitweb.cgi?p=factor.git;a=blobdiff_plain;f=extra%2Fbenchmark%2Fnbody%2Fnbody.factor;h=983da8882176f1a7697d8fea8cdd6746c6599740;hp=f72ceb46297301bfe24e933a6d0f89e11b2491c6;hb=3f3d57032bf29190e9bee12d168a4bce6d74653c;hpb=cd1bb8f4c8afba318249c7b756a45aa1c46ea51e diff --git a/extra/benchmark/nbody/nbody.factor b/extra/benchmark/nbody/nbody.factor index f72ceb4629..983da88821 100644 --- a/extra/benchmark/nbody/nbody.factor +++ b/extra/benchmark/nbody/nbody.factor @@ -59,7 +59,7 @@ TUPLE: nbody-system { bodies array read-only } ; :: each-pair ( bodies pair-quot: ( other-body body -- ) each-quot: ( body -- ) -- ) bodies [| body i | body each-quot call - bodies i 1+ tail-slice [ + bodies i 1 + tail-slice [ body pair-quot call ] each ] each-index ; inline