Guest User

Untitled

a guest
Jan 20th, 2018
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.12 KB | None | 0 0
  1. ```
  2. +--------------------+--------------------+-------------------------+--------------------+
  3. |Operation | F#+ / F# |F#+ Haskell Compatibility|Haskell |
  4. +====================+====================+=========================+====================+
  5. |List.append | @ | | ++ |
  6. +--------------------+--------------------+-------------------------+--------------------+
  7. |Function composition| f << g | f . (g) | f . g |
  8. +--------------------+--------------------+-------------------------+--------------------+
  9. | | <| | $ | $ |
  10. +--------------------+--------------------+-------------------------+--------------------+
  11. | | = | == | == |
  12. +--------------------+--------------------+-------------------------+--------------------+
  13. | | <> | =/ | /= |
  14. +--------------------+--------------------+-------------------------+--------------------+
  15. |flip | /> | | |
  16. +--------------------+--------------------+-------------------------+--------------------+
  17. |apply function to | </ or |> | | |
  18. |value | | | |
  19. +--------------------+--------------------+-------------------------+--------------------+
  20. | | | | |
  21. +--------------------+--------------------+-------------------------+--------------------+
  22. |Functor | | | |
  23. +--------------------+--------------------+-------------------------+--------------------+
  24. |map |<!> or <<| | <!> or fmap | <$> or fmap |
  25. +--------------------+--------------------+-------------------------+--------------------+
  26. |same as map but | |>> | | |
  27. |arguments | | | |
  28. |interchanged | | | |
  29. +--------------------+--------------------+-------------------------+--------------------+
  30. | | | | |
  31. +--------------------+--------------------+-------------------------+--------------------+
  32. |Monoid | | | |
  33. +--------------------+--------------------+-------------------------+--------------------+
  34. |monoid zero element | zero | mempty | mempty |
  35. +--------------------+--------------------+-------------------------+--------------------+
  36. |append | ++ or plus | mappend | mappend |
  37. +--------------------+--------------------+-------------------------+--------------------+
  38. | | | | |
  39. +--------------------+--------------------+-------------------------+--------------------+
  40. |Applicative functors| | | |
  41. +--------------------+--------------------+-------------------------+--------------------+
  42. |apply (combine) | <*> | <*> | <*> |
  43. +--------------------+--------------------+-------------------------+--------------------+
  44. |Sequence actions, | *> | *> | *> |
  45. |discarding the value| | | |
  46. |of the first | | | |
  47. |argument. | | | |
  48. +--------------------+--------------------+-------------------------+--------------------+
  49. |Sequence actions, | <* | <* | <* |
  50. |discarding the value| | | |
  51. |of the second | | | |
  52. |argument. | | | |
  53. +--------------------+--------------------+-------------------------+--------------------+
  54. |A variant of <*> | <**> | <**> | <**> |
  55. |with the arguments | | | |
  56. | reversed. | | | |
  57. +--------------------+--------------------+-------------------------+--------------------+
  58. |Lift a value. | result | pure' | pure |
  59. +--------------------+--------------------+-------------------------+--------------------+
  60. | | | | |
  61. +--------------------+--------------------+-------------------------+--------------------+
  62. |Alternative | | | |
  63. +--------------------+--------------------+-------------------------+--------------------+
  64. |alternatives: binary| <|> | <|> | <|> |
  65. |operation | | | |
  66. +--------------------+--------------------+-------------------------+--------------------+
  67. | | | | |
  68. +--------------------+--------------------+-------------------------+--------------------+
  69. |Monad | | | |
  70. +--------------------+--------------------+-------------------------+--------------------+
  71. |Bind Sequentially | >>= | >>= | >>= |
  72. |compose two actions,| | | |
  73. |passing any value | | | |
  74. |produced by the | | | |
  75. |first as an argument| | | |
  76. |to the second. | | | |
  77. +--------------------+--------------------+-------------------------+--------------------+
  78. |Same as >>=, but | =<< | =<< | =<< |
  79. |with the arguments | | | |
  80. |interchanged. | | | |
  81. +--------------------+--------------------+-------------------------+--------------------+
  82. ```
Add Comment
Please, Sign In to add comment