-module(caffeine_lang@parallel). -compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]). -define(FILEPATH, "src/caffeine_lang/parallel.gleam"). -export([parallel_map/2]). -if(?OTP_RELEASE >= 27). -define(MODULEDOC(Str), -moduledoc(Str)). -define(DOC(Str), -doc(Str)). -else. -define(MODULEDOC(Str), -compile([])). -define(DOC(Str), -compile([])). -endif. -file("src/caffeine_lang/parallel.gleam", 9). ?DOC(" Maps a function over a list, potentially in parallel on the BEAM.\n"). -spec parallel_map(list(JKT), fun((JKT) -> JKV)) -> list(JKV). parallel_map(Items, Fun) -> caffeine_lang_ffi:parallel_map(Items, Fun).