Re: counting nils in a list



nick_keighley_nospam@xxxxxxxxxxx writes:

On 14 Mar, 19:18, p...@xxxxxxxxxxxxxxxxx (Pascal J. Bourguignon)
wrote:

You can start from the result you want: <some result>
What is it?  How can you get it?

It is <some description>
We can get it using the function <some funcs>

DONE.

Yes, really!

I can see you don't believe me.  Check it:

<some test>

We just need now to compute value of the symbol <some result>
What is it?  How can you get it?

<snip>

So all we have to do now is code up Pascal's algorithm as a macro
and we'll never have to work again...

It's called the GPS, explained in PAIP. ;-)

--
__Pascal Bourguignon__
.



Relevant Pages

  • Re: Push/Pop for list tail
    ... My algorithm requires a deque. ... (defmacro push-end (list item) ... Reversing the list of N items first, pushing M items, and reversing ... wrote a macro that facilitates this. ...
    (comp.lang.lisp)
  • Re: change background color of cell as value changes
    ... if you don't use conditional formatting. ... colors, you would need to set up an algorithm, probably in the form of a case ... that would be called if any cell in Col A changes and if the value ... dynamically with other macro code that is already completed. ...
    (microsoft.public.excel.programming)
  • Re: Quick question about Ada code formatting.
    ... subprograms. ... has any GPS user out there written a macro like ... separate the procedures. ...
    (comp.lang.ada)
  • Re: stupid iper newbie question
    ... Before even the first complete algorithm is ... all the boilerplate is hidden inside the "macro" and only the name ... Then in the chapter on macros, there should be a reference to this ...
    (comp.lang.lisp)
  • Re: Quick question about Ada code formatting.
    ... Between subprograms I prefer the "GNAT style" header box: ... has any GPS user out there written a macro like ... separate the procedures. ...
    (comp.lang.ada)