From c03d73c1cfbeb7c7d00a6b48111f152496e46c8f Mon Sep 17 00:00:00 2001 From: volth Date: Sat, 7 Jul 2018 23:30:17 +0000 Subject: [PATCH] prim_map, prim_genList: no need to force function argument which will be stored in mkApp --- src/libexpr/primops.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index e7b319fea..09b01cae8 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -1428,7 +1428,6 @@ static void prim_tail(EvalState & state, const Pos & pos, Value * * args, Value /* Apply a function to every element of a list. */ static void prim_map(EvalState & state, const Pos & pos, Value * * args, Value & v) { - state.forceFunction(*args[0], pos); state.forceList(*args[1], pos); state.mkList(v, args[1]->listSize()); @@ -1556,7 +1555,6 @@ static void prim_all(EvalState & state, const Pos & pos, Value * * args, Value & static void prim_genList(EvalState & state, const Pos & pos, Value * * args, Value & v) { - state.forceFunction(*args[0], pos); auto len = state.forceInt(*args[1], pos); if (len < 0)