how to write a list builder? fixpoint?
Hi, just curious. When building a list, normally I do [a,b,c,d]. Is it possible to write a function to build a list [a]? so that I can write [a,b,c,d] as "getBuilt $ build a b c d"? looks like build will have to be of type ListBuilder, where ListBuilder a = a -> ListBuilder a. Is it a fix point? Ben. This message is intended only for the addressee and may contain information that is confidential or privileged. Unauthorized use is strictly prohibited and may be unlawful. If you are not the intended recipient, or the person responsible for delivering to the intended recipient, you should not read, copy, disclose or otherwise use this message, except for the purpose of delivery to the addressee. If you have received this email in error, please delete and advise us immediately.
participants (1)
-
Ben.Yu@combined.com