Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Concurrent-computing/F-Sharp/concurrent-computing.fs
Normal file
12
Task/Concurrent-computing/F-Sharp/concurrent-computing.fs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
module Seq =
|
||||
let piter f xs =
|
||||
seq { for x in xs -> async { f x } }
|
||||
|> Async.Parallel
|
||||
|> Async.RunSynchronously
|
||||
|> ignore
|
||||
|
||||
let main() = Seq.piter
|
||||
(System.Console.WriteLine:string->unit)
|
||||
["Enjoy"; "Rosetta"; "Code";]
|
||||
|
||||
main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue