>
> > (+ 1 (index-of (remove-duplicates (reverse fn-names)) name))
>
> FWIW this is the same as `(length (member name fn-names))` if you avoid 
> putting duplicates in `fn-names` to begin with. `member` returns the tail 
> of the list beginning with the matching item. So in this case, [the tail 
> would comprise a list of the footnote names from the target name to the 
> first name collected (because the list is being accumulated in reverse). ]
>
>
OK I understand what you were doing there now. I was a bit confused at the 
behavior of `member`, although now I see how it could come in handy.

However, I did have to include duplicates (I removed the `if` from `set! 
fn-names`) because that’s what allows you to include the right number of 
back-links at the end of each footnote. And the list has to be reversed 
anyways before duplicates are removed otherwise it will number them 
according to the last occurence instead of the first.


> I apologize if I exploded part of your blog post. Occasional unfortunate 
> side effect of being a curious character. May we be united in the quest for 
> knowledge ;)
>

Hear hear! No, one of my original reasons for starting the notepad was to 
have a place for “techie fish-wrap.” If I ever publish a “Pollen Cookbook” 
[1] hopefully the stuff I put in there will be a little more 
explosion-proof for having been examined like this.

[1]: 
https://www.abebooks.com/first-edition/Basic-Cookbook-Tracton-Ken-RADIO-SHACK/4257303723/bd

-- 
You received this message because you are subscribed to the Google Groups 
"Pollen" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to