Discuss Scratch
- Eagle138
-
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
-
100+ posts
split blocks
Like the
block in Snap!?
split [Hello, world!] by [line v] :: operators reporter
block in Snap!?
- ideapad-320
-
1000+ posts
split blocks
That makes more sense than the original.or maybe it would make more sense with some fillers in the block menu? 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.(section(1) of split[apple, banana] on character[,]::operators)
Also what if you put more than 1 char in the 2nd textbox?
Other blocks:
(convert list [list v] to split on []::list)Operators Style:
(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
(convert list [list v] to split on []::operators)and:
(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
(number of splits in [] on []::operators)
- mitdk
-
1000+ posts
split blocks
That makes more sense than the original.or maybe it would make more sense with some fillers in the block menu? 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.(section(1) of split[apple, banana] on character[,]::operators)
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
-
1000+ posts
split blocks
that makes sense but what if you do:That makes more sense than the original.or maybe it would make more sense with some fillers in the block menu? 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.(section(1) of split[apple, banana] on character[,]::operators)
Also what if you put more than 1 char in the 2nd textbox?
-snip-(part(1) of split[a,,b] on [,,]::operators)//a
(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?
- k0d3rrr
-
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
-
1000+ posts
split blocks
first odhcucr too lazy to type, not the second would make sensethat makes sense but what if you do:That makes more sense than the original.or maybe it would make more sense with some fillers in the block menu? 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.(section(1) of split[apple, banana] on character[,]::operators)
Also what if you put more than 1 char in the 2nd textbox?
-snip-(part(1) of split[a,,b] on [,,]::operators)//a(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?
Edit: i think i was drinking adult juice when posting this
Last edited by medians (March 29, 2023 00:35:34)
- PkmnQ
-
1000+ posts
split blocks
a, bc, empty string 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?