My gay little attempt at a functional library for C#
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
505 B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace FunctionalCS
  7. {
  8. class R
  9. {
  10. // Identity :: a -> a
  11. public static T Identity<T>(T pValue)
  12. {
  13. return pValue;
  14. }
  15. /*
  16. * Implement :
  17. * Compose :: ((e -> f), ..., (b -> c), (a -> b)) -> a -> f
  18. * Pipe :: ((a -> b), (b -> c), ..., (e -> f)) -> a -> f
  19. * Curry :: (fn) -> fn
  20. */
  21. }
  22. }