chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] ANN: The `str#' macro


From: Stephen Eilert
Subject: Re: [Chicken-users] ANN: The `str#' macro
Date: Mon, 27 Jun 2011 09:36:59 -0300

On Sat, Jun 25, 2011 at 2:59 PM, Kon Lovett <address@hidden> 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...



--Stephen

Sent from my Emacs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]