Re: FORMAT ~<...~:@> PUZZLE



Vladimir Zolotykh wrote:

> What's wrong? I'd expect that calls with n less that 50 (e.g 20, 30, 40)
> would also print _formatted_ paragraph. Where was I wrong?

Try:

(format t "~@<~{~A~^ ~:_~}~:@>" a)))

CL-USER 2 > (foo 10)
Whan
you're
lost in
the Wild,
and
you're
scared as
a child,
And Death
looks you
bang in
the eye,
NIL

CL-USER 3 > (foo 20)
Whan you're lost in
the Wild, and
you're scared as a
child, And Death
looks you bang in
the eye,
NIL

CL-USER 4 > (foo 30)
Whan you're lost in the Wild,
and you're scared as a child,
And Death looks you bang in
the eye,
NIL

CL-USER 5 > (foo 40)
Whan you're lost in the Wild, and
you're scared as a child, And Death
looks you bang in the eye,
NIL

--
Geoff

.



Relevant Pages

  • Re: FORMAT ~<...~:@> PUZZLE
    ... > the Wild, ... "if miser style is in effect, fill-style conditional newlines act ... Whan ...
    (comp.lang.lisp)
  • Re: FORMAT ~<...~:@> PUZZLE
    ... > (defun foo (n) ... > Whan you're lost in the Wild, ...
    (comp.lang.lisp)
  • Re: Esther Rantzen: Fear of paedophiles is harming children
    ... I am not aware of many lost children starving to death in their local shopping mall. ... Drop this "lost child" into the nearest swimming pool and rescuers will be drowning each other in their attempts to render assistance. ... Of course it exists - as does the health & safety monster, the compensation claim monster, the selfish bastard monster, plus a few others that our society has not only bred, but spoon-fed with legislation encouraging them. ... However, let's face it - the typical male adult is neither experienced or skilled in calming down and establishing trust with a small, strange, child. ...
    (uk.legal)
  • Re: Esther Rantzen: Fear of paedophiles is harming children
    ... I am not aware of many lost children starving to death in their local shopping mall. ... Drop this "lost child" into the nearest swimming pool and rescuers will be drowning each other in their attempts to render assistance. ... Of course it exists - as does the health & safety monster, the compensation claim monster, the selfish bastard monster, plus a few others that our society has not only bred, but spoon-fed with legislation encouraging them. ... I know of someone who was given immediate access to very vulnerable adults solely on the basis of a CRB certificate from a previous post, whilst their own CRB check was being carried out and prior to references being taken up. ...
    (uk.legal)
  • Re: Where teh wild things are judged
    ... The emotions run raw and honest in this film. ... Wild Things as well as Max's family to the Wild Things. ... issues and devolves into a Mother-son shouting match. ... Another element i just loved is that Max is a child. ...
    (rec.sport.football.college)