That does the trick. Thank you Alex!
I think Haskell makes a big deal about Pattern Matching. I'm using your
"match" here as a simple string matcher. I'm sure there are better ways, but
I'm happy with my baby steps that appear to work!
Happy 2017.
On Tue, Jan 03, 2017 at 10:21:38AM +0100, Alexander Burger wrote:
On Tue, Jan 03, 2017 at 07:52:34AM +0100, Alexander Burger wrote:
(match (append '(@A) (chop Varstring) '(@B)) ...
BTW, better is perhaps
(match (cons '@A (conc (chop Varstring) '(@B))) ...
because 'append' unnecessarily copies the list just built by 'chop'.
'conc' avoids that garbage. Not critical though ;)
♪♫ Alex
--
UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe
--
Joe Golden
--
UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe