Discuss Scratch

HTML_JAVASCRIPT_CSS
Scratcher
100+ posts

split blocks

bump
Eagle138
Scratcher
500+ posts

split blocks

Semi-support. It would be useful, but maybe change the wording a little to make the function of the block clearer.
SuperMarioHome
Scratcher
100+ posts

split blocks

Like the

split [Hello, world!] by [line v] :: operators reporter

block in Snap!?
mitdk
Scratcher
1000+ posts

split blocks

bump
mitdk
Scratcher
1000+ posts

split blocks

bump
mitdk
Scratcher
1000+ posts

split blocks

bump
mitdk
Scratcher
1000+ posts

split blocks

bump
mitdk
Scratcher
1000+ posts

split blocks

bump
ideapad-320
Scratcher
1000+ posts

split blocks

mitdk wrote:

sportfan999 wrote:

It may seem a little complicated to beginning Scratchers. Sorry, but no support. I may support it if the block name was easier to read.
or maybe it would make more sense with some fillers in the block menu?
(section(1) of split[apple, banana] on character[,]::operators)
That makes more sense than the original.
Also what if you put more than 1 char in the 2nd textbox?
Other blocks:
(convert list [list v] to split on []::list)
(convert items () to () of list[list v] to split on []::list)
convert split[] on [] to list[list v]::list

add all items of split[] on [] to list[list v]::list

add all items of split[] on [] to list[list v] at ()::list
Operators Style:
(convert list [list v] to split on []::operators)
(convert items () to () of list[list v] to split on []::operators)
convert split[] on [] to list[list v]::operators

add all items of split[] on [] to list[list v]::operators

add all items of split[] on [] to list[list v] at ()::operators
and:
(number of splits in [] on []::operators)
mitdk
Scratcher
1000+ posts

split blocks

ideapad-320 wrote:

mitdk wrote:

sportfan999 wrote:

It may seem a little complicated to beginning Scratchers. Sorry, but no support. I may support it if the block name was easier to read.
or maybe it would make more sense with some fillers in the block menu?
(section(1) of split[apple, banana] on character[,]::operators)
That makes more sense than the original.
Also what if you put more than 1 char in the 2nd textbox?
-snip-
(part(1) of split[a,,b] on [,,]::operators)//a

Last edited by mitdk (Feb. 22, 2022 16:40:41)

ideapad-320
Scratcher
1000+ posts

split blocks

mitdk wrote:

ideapad-320 wrote:

mitdk wrote:

sportfan999 wrote:

It may seem a little complicated to beginning Scratchers. Sorry, but no support. I may support it if the block name was easier to read.
or maybe it would make more sense with some fillers in the block menu?
(section(1) of split[apple, banana] on character[,]::operators)
That makes more sense than the original.
Also what if you put more than 1 char in the 2nd textbox?
-snip-
(part(1) of split[a,,b] on [,,]::operators)//a
that makes sense but what if you do:
(sect (1) of split[abbbc] on char [bb]::operators)//a or ab?
(sect (2) of split[abbbc] on char [bb]::operators)//b or bc?
(sect (3) of split[abbbc] on char [bb]::operators)//bc or to high?
mitdk
Scratcher
1000+ posts

split blocks

bump
k0d3rrr
Scratcher
1000+ posts

split blocks

This is a very great suggestion because you can find out how many times words are split by either commas, full stops or just ordinary spaces.
number of parts in split [Lorem ipsum dolor sit amet] on [ ]:: reporter operators // Returns as "6".
That sample text is often used as a placeholder.
medians
Scratcher
1000+ posts

split blocks

ideapad-320 wrote:

mitdk wrote:

ideapad-320 wrote:

mitdk wrote:

sportfan999 wrote:

It may seem a little complicated to beginning Scratchers. Sorry, but no support. I may support it if the block name was easier to read.
or maybe it would make more sense with some fillers in the block menu?
(section(1) of split[apple, banana] on character[,]::operators)
That makes more sense than the original.
Also what if you put more than 1 char in the 2nd textbox?
-snip-
(part(1) of split[a,,b] on [,,]::operators)//a
that makes sense but what if you do:
(sect (1) of split[abbbc] on char [bb]::operators)//a or ab?
(sect (2) of split[abbbc] on char [bb]::operators)//b or bc?
(sect (3) of split[abbbc] on char [bb]::operators)//bc or to high?
first odhcucr too lazy to type, not the second would make sense
Edit: i think i was drinking adult juice when posting this

Last edited by medians (March 29, 2023 00:35:34)

AnxiousShoveI
New Scratcher
4 posts

split blocks

Bump
mitdk
Scratcher
1000+ posts

split blocks

bump
mitdk
Scratcher
1000+ posts

split blocks

bump
PkmnQ
Scratcher
1000+ posts

split blocks

ideapad-320 wrote:

that makes sense but what if you do:
(sect (1) of split[abbbc] on char [bb]::operators)//a or ab?
(sect (2) of split[abbbc] on char [bb]::operators)//b or bc?
(sect (3) of split[abbbc] on char [bb]::operators)//bc or to high?
a, bc, empty string
mitdk
Scratcher
1000+ posts

split blocks

bump
mitdk
Scratcher
1000+ posts

split blocks

bump

Powered by DjangoBB