From 27aef5ad656b1a08edff51d26931b633fd81f553 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Fri, 3 Jul 2020 15:44:24 -0400 Subject: fourteen/server.rkt: Update serialize-players-for Use foldr instead of foldl. --- net/ricketyspace/ror/fourteen/server.rkt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ricketyspace/ror/fourteen/server.rkt b/net/ricketyspace/ror/fourteen/server.rkt index 3a91788..21485a5 100644 --- a/net/ricketyspace/ror/fourteen/server.rkt +++ b/net/ricketyspace/ror/fourteen/server.rkt @@ -491,7 +491,7 @@ The server is responsible for: [else (player (ip-id plyr) (ip-body plyr) (filter-out (ip-waypoints plyr)))])) - (foldl (lambda (plyr srlzd-pls) (cons (mk-pl plyr) srlzd-pls)) '() pls)) + (foldr (lambda (plyr srlzd-pls) (cons (mk-pl plyr) srlzd-pls)) '() pls)) ; ; -- cgit v1.2.3