Hello, Jon!

25.02.2016, 20:02, "Jon Harper" <jon.harpe...@gmail.com>:
> I wrote a basic o(n^4) solution to see how simple it could get. The
> code looks nice to me, but it's slloooow :) like 1 hour on the 3200
> chars string.. http://paste.factorcode.org/paste?id=3843

  Wow, your code looks very nice!
  I didn't know about collect-index-by, so I had to invent it yesterday.
  Today I was also about to invent all-combinations : ))

> I noticed we have 1 function in common : remove-after-underscore. You
> can can see how head and when* make my implementation shorter (and
> more readable?)

  Here's another version of that same function, I hope you like it:

USE: splitting

: remove-after-underscore ( seq -- seq' )
    { CHAR: _ } split1 drop ;

  : )

PS: Can someone approve two of my messages that are stuck in the mailing list's 
moderation queue?

---=====---
 Александр

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to