On Mon, Jun 27, 2011 at 5:36 AM, Stephen Eilert <[email protected]> wrote:

> On Sat, Jun 25, 2011 at 2:59 PM, Kon Lovett <[email protected]> wrote:
> > Hi,
> >
> > Just added `str#' to the moremacros egg. It behaves like #<# but for
> regular
> > strings. Might be useful.
> >
> > (str# "(+ 1 2) = #{(+ 1 2)}")   => "(+ 1 2) = 3"        <= (conc "(+ 1 2)
> =
> > " (+ 1 2))
> >
> > (str# "(+ 1 2) = #(+ 1 2)")     => "(+ 1 2) = 3"        <= (conc "(+ 1 2)
> =
> > " (+ 1 2))
> >
> > (str# "#{23}###{45}")           => "23#45"              <= (conc 23 "#"
> 45)
> >
> > (Does not require data-structures to be imported even though conc is
> used.)
> >
> > Best Wishes,
> > Kon
>
> Fi fa fo fum... I smell the blood of Ruby...
>

Dang this is cool. Thanks Kon!

Browsing moremacros I see "stiff-set!". Were did that name come from? It
sounds a little coarse to my ears, I think I'll rename it to "multi-set!"
before I use it in my code :)


>
> --Stephen
>
> Sent from my Emacs
>
> _______________________________________________
> Chicken-users mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/chicken-users
>
_______________________________________________
Chicken-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to