Re: [Haskell-cafe] Proposal: Non-recursive let

2013-07-10 Thread Ezra e. k. Cooper
bang gives an imperative flavor. Other suggestions would be welcome. Ezra On Wed, Jul 10, 2013, at 01:47 AM, o...@okmij.org wrote: I have also had problems with non-termination, unintended recursion. The problem is not caught statically and leads to looping, which may be quite difficult

Re: [Haskell-cafe] for = flip map

2012-03-28 Thread ezra
in Data.List and force people to qualify as necessary, or (b) choose another name for flip map. Regarding other possible names: forall is a keyword and forAll is used by QuickCheck. One possibility would be foreach. Ezra On Wed, Mar 28, 2012, at 10:19 PM, Christopher Done wrote: On 28 March 2012 22:05

Re: [Haskell-cafe] Quick check finite data generation

2011-09-22 Thread ezra
that helps-- Ezra On Friday, September 23, 2011 4:22 AM, mukesh tiwari mukeshtiwari.ii...@gmail.com wrote: Hello all I have a data type data Index = Index {indexSize::Float, indexIds::[Int], indexDown::(IntMap.IntMap Index)} | IndexLeaf {indexSize::Float, indexIds::[Int

Re: [Haskell-cafe] why the name lambda calculus?

2011-08-23 Thread Ezra Cooper
described as calculi--that they have some form of name-binders, but I have never seen that observation written down. I'm sure that an algebraist could give a more definite answer about this. Ezra On Aug 23, 2011, at 12:19 PM, Rajesh S R srrajesh1...@gmail.com wrote: Slight digression. Why

Re: [Haskell-cafe] Tracer for Haskell showing substitutions

2010-02-02 Thread Ezra Lalonde
. That is, an end user is able to manipulate the text of a Haskell module simply by point-and-click mouse operations on displayed values. Pen and paper work too. Ezra. Ulrik Rasmussen-2 wrote: Hi all, I was wondering if someone has written a tracer/debugger that shows you how a given Haskell

Re: Re[Haskell-cafe] cursive to foldr

2009-11-17 Thread Ezra Lalonde
; if somebody with some more experience would chime in, that'd be awesome. ;) Ezra dima.neg wrote: How can I do this using foldr? searchList p [] = Nothing searchList p (x:xs) | p x = Just (x:filter p xs) | otherwise = searchList p xs I try

Re: [Haskell-cafe] Help to solve simple problem !

2009-11-10 Thread Ezra Lalonde
, we also get the following: *Main toTuple Ezra ('E',4) But that won't matter if we only use it after toList, as in compress. Also, I've used your type signature for my solution, not your example output; if you want it to be displayed like that, you'll have to write your own function for printing

Re: [Haskell-cafe] How to print a string (lazily)

2006-01-03 Thread Ezra Cooper
) but it will not immediately force the evaluation of (join xs). That part stays as it is, living life as a thunk, until the caller has demanded all the preceding elements and still wants more. hth, Ezra ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http

Re: [Haskell-cafe] Two questions: lazy evaluation and Church-Rosser

2005-11-15 Thread Ezra Cooper
Gregory, Church-Rosser is proved in any good text on lambda calculus, such as Barendregt [1]. Some rather detailed notes on that book are at [2]. Lazy evaluation is often formalized as call-by-need. Try [3]. Ezra [1] Barendregt. The Lambda Calculus http://www.amazon.com/exec/obidos/ASIN