summary refs log tree commit diff
diff options
context:
space:
mode:
authordanbst <abcz2.uprola@gmail.com>2019-08-05 14:34:51 +0300
committerdanbst <abcz2.uprola@gmail.com>2019-08-05 14:34:51 +0300
commit29ba0a0adff274f5ea0d93246be3f2957d234a7b (patch)
treee53b8682e4ad2804086a5c7a02ded21412e3685c
parent210c57883e659f5a1d4f5c29ed5970df93ee2940 (diff)
downloadnixpkgs-29ba0a0adff274f5ea0d93246be3f2957d234a7b.tar
nixpkgs-29ba0a0adff274f5ea0d93246be3f2957d234a7b.tar.gz
nixpkgs-29ba0a0adff274f5ea0d93246be3f2957d234a7b.tar.bz2
nixpkgs-29ba0a0adff274f5ea0d93246be3f2957d234a7b.tar.lz
nixpkgs-29ba0a0adff274f5ea0d93246be3f2957d234a7b.tar.xz
nixpkgs-29ba0a0adff274f5ea0d93246be3f2957d234a7b.tar.zst
nixpkgs-29ba0a0adff274f5ea0d93246be3f2957d234a7b.zip
add release notes
-rw-r--r--nixos/doc/manual/release-notes/rl-1909.xml12
1 files changed, 12 insertions, 0 deletions
diff --git a/nixos/doc/manual/release-notes/rl-1909.xml b/nixos/doc/manual/release-notes/rl-1909.xml
index 6f049005ab6..398234cf025 100644
--- a/nixos/doc/manual/release-notes/rl-1909.xml
+++ b/nixos/doc/manual/release-notes/rl-1909.xml
@@ -387,6 +387,18 @@
      installer after creating <literal>/var/lib/nextcloud</literal>.
     </para>
    </listitem>
+   <listitem>
+    <para>
+     There exists now <literal>lib.forEach</literal>, which is like <literal>map</literal>, but with
+     arguments flipped. When mapping function body spans many lines (or has nested
+     <literal>map</literal>s), it is often hard to follow which list is modified.
+    </para>
+    <para>
+     Previous solution to this problem was either to use <literal>lib.flip map</literal>
+     idiom or extract that anonymous mapping function to a named one. Both can still be used
+     but <literal>lib.forEach</literal> is preferred over <literal>lib.flip map</literal>.
+    </para>
+   </listitem>
   </itemizedlist>
  </section>
 </section>