Sunday, 15 May 2011

functional programming - Processing 2 List in F# -


I have some data, such as:

  id = [11; 9; 12] ;; Student = [(9, "n"); (10, "Ben"); (11, "Carl"); (12, "Dave")] ;;  

Please help to apply a function named getName for example

  & gt; GetName (ID, student) ;; - If you are learning '' '' '' '' '' '' '' 'then functional programming, then the correct approach will be to use recursive. But to help you with that, you have to share the code you tried to write.  

In practice, the easiest option might be to list the list dict and then see all the IDs in the dictionary:

  Give students to two students = Lookup = Instruction student ID. & Gt; List.map (Funny id -> Lookup. [ID]) Student ID student  

No comments:

Post a Comment