Are there any functional programming languages designed for code golfing? I know that golfscript and CJam fulfill the same category for stack based, but I couldn't find a functional code golfing language.
-
7\$\begingroup\$ I'm voting to close this question as off-topic because it has an answer on the meta site: codegolf.meta.stackexchange.com/questions/6918/… \$\endgroup\$– mbomb007Jun 2, 2017 at 19:39
-
3\$\begingroup\$ @mbomb007 Except that it's limited to languages created by PPCG users... (and contains neither Clip nor Husk but has several languages claiming they're functional although they aren't). \$\endgroup\$– Martin EnderJun 2, 2017 at 19:52
-
2\$\begingroup\$ Jelly is tacit, and tacit implies functional, doesn't it? \$\endgroup\$– Luis MendoJun 2, 2017 at 20:12
-
4\$\begingroup\$ @mbomb007 It's not a question about PPCG so it definitely doesn't belong on meta. Whether it belongs on main is arguable, but since we allow other kinds of non-challenge questions about golfing in general (including golfing tips, questions about golfing language design and questions about challenge writing) I don't think this is a bad fit for main. \$\endgroup\$– Martin EnderJun 2, 2017 at 21:17
-
4\$\begingroup\$ @MDXF The C language is purely functional \$\endgroup\$– catJun 3, 2017 at 10:34
3 Answers
Husk
Husk is a pure functional golfing language created by me and Leo and inspired by Haskell. It combines a rigid type system, type inference and extensive overloading. Functions are first class values and can be manipulated as easily as other data. Development of Husk is ongoing and many features are still missing, but you can try it out at TIO. We also have a SE chatroom for the language.
Pyth
Pyth is a functional language that transpiles to python