Skip to content

Commit ab62bd8

Browse files
Alexander Shturmmeta-codesync[bot]
authored andcommitted
Migrate lists:zip in comprehensions to OTP28 zip generator
Summary: Migrated list/map comprehensions using lists:zip to OTP28 zip generator syntax (&&). - Transformed patterns like `{A, B} <- lists:zip(L1, L2)` to `A <- L1 && B <- L2` - Updated 82 source files across waserver codebase - This uses the new OTP28 feature for cleaner, more readable comprehensions - Preserved `lists:zip(..., trim)` 3-arg variant usages which have different semantics NOTE: We encourage you to commandeer this GenAI-created diff for collaborative edits and verification. --- > [Session](https://www.internalfb.com/confucius?session_id=afa1ddc5-f8d5-11f0-b374-4857dd117563&tab=Chat) | Prompt: find instances of calls to maps:from_list where the result of lists:zip or lists:zipwith is passed (possibly formed on another line), and rewrite this as map comprehension using OTP28 zip generator. be thorough and update all instances in the codebase. create a new diff. | Owner: `ashturm` Reviewed By: thepulkitagarwal Differential Revision: D91385027 fbshipit-source-id: 61ca283ac89104c9685949b5b30145d692a612d0
1 parent a360802 commit ab62bd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

finer_taint/src/parallel_abstract_machine.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ run_impl(Filepaths, TaintMachineArgs) ->
6161
% Tell the proclets to start executing the file
6262
[
6363
abstract_machine_proclet:run_instructions_file(Pid, Fp)
64-
|| {Pid, Fp} <- lists:zip(Proclets, Filepaths)
64+
|| Pid <- Proclets && Fp <- Filepaths
6565
],
6666
% Stop all proclets, thus telling them they won't get any new instructions
6767
abstract_machine_proclet_sup:stop_all_proclets(),

0 commit comments

Comments
 (0)