map

    0

    0

    lucycodes42

    Haskell public recipes

    When you use the map function, it takes two arguments. The first argument is a variable name and the second argument is a function. The map function will call the function every time it is invoked with the same variable name as the first argument. The function will receive the value of the variable as the argument.

    Shortcut: map

    map (\\${element} -> ${element}) ${collection}
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.