如何将字符串列表连接/缩减为单个字符串?

时间:2017-10-27 16:23:33

标签: nix

我想转换此

builtins.readFile ../../dotfiles/vim/commands.vim + "\n" +
builtins.readFile ../../dotfiles/vim/keybindings.vim + "\n" +
builtins.readFile ../../dotfiles/vim/plugins.vim
进入更有活力的事物。这是我到目前为止所得到的。它评估为字符串列表。

map
  ( fileName: builtins.readFile ( ../../dotfiles/vim + "/${fileName}" )
  ( builtins.AttrNames ( builtins.readDir ../../dotfiles/vim ) )

1 个答案:

答案 0 :(得分:0)

random_val = random.randint(1, 100)

lib.concatStrings