Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

f# list map function

let f = fun n -> n * n
let squares = [2; 4; 6; 8] |> List.map f
// val squares : int list = [4; 16; 36; 64]
Source by bradcollins.com #
 
PREVIOUS NEXT
Tagged: #list #map #function
ADD COMMENT
Topic
Name
5+1 =