Hi Alex,
Ah. That's what I missed the sort direction of the second argument..
Thank you
Lindsay
On Tue, May 23, 2017 at 10:47 PM, Alexander Burger
wrote:
> Hi Lindsay,
>
> > My sample code ("ABRA..) is wrong. Sorry about that.
>
> Ah, I see. No problem.
>
Hi Lindsay,
> My sample code ("ABRA..) is wrong. Sorry about that.
Ah, I see. No problem.
> : (rank 'c '((a . a) (b . b) (d . d)) T) # ???
> -> NIL
> : (rank 'd '((a . a) (b . b) (d . d)) T) # ???
> -> NIL
>
> : (rank 'd '((a
Thanks Alex,
My sample code ("ABRA..) is wrong. Sorry about that.
I simplified too much from some other code I have written that has a lot
of unrelated stuff in it.
However, what about these examples? Similar to those of the documentation:
: (rank 'c '((a . a) (b
t; "A" "B" "R" "A")
("A" "B" "R" "A")
("A" "B" "R" "A" "A" "B" "R" "A" "C" "A" "D" "A" "
Hi,
PicoLisp makes it very easy to build and work with suffix arrays.
Yesterday I realized there is a built-in '*rank* function which I thought
would neatly replace some custom code I had written to do the same thing.
However, passing non-nil in the third-param does not return the exp