Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #53710

:Re: Looping over array.

From "Robert L." <No_spamming@noWhere_7073.org>
Newsgroups comp.lang.forth
Subject :Re: Looping over array.
Date 2017-01-03 17:35 +0000
Organization Aioe.org NNTP Server
Message-ID <o4gncg$p2i$1@gioia.aioe.org> (permalink)

Show all headers | View raw


> CL-USER 5 > (loop for c across "Hello World!"
>                   when (char= #\l c) count 1)
> 3

Ruby:

"Hello World!".count "l"
    ==>3

In Forth?

-- 
"A Jew always has a much higher soul than a gentile, even if he is a
homosexual," he [Israel's Deputy Defense Minister Eli Ben-Dahan] said.
theoccidentalobserver.net/2015/10/israeli-minister-latest-in-long-line-of-jews-asserting-the-inferiority-of-non-jews

Back to comp.lang.forth | Previous | Next | Find similar | Unroll thread


Thread

:Re: Looping over array. "Robert L." <No_spamming@noWhere_7073.org> - 2017-01-03 17:35 +0000

csiph-web