Binary strings: Difference between revisions

m
→‎{{header|J}}: Add lang tags
m (→‎{{header|J}}: Add lang tags)
Line 559:
 
* String creation and destruction is not needed
<lang j> FIXME: show mapped file example</lang>
 
* String assignment
<lang j> name=: 'value'</lang>
 
* String comparison
<lang j> name1 -: name2</lang>
 
name1 -: name2
 
* String cloning and copying is not needed
<lang j> FIXME: show mapped file example</lang>
 
* Check if a string is empty
<lang j> 0=#string</lang>
 
* Append a byte to a string
<lang j> string,byte</lang>
 
* Extract a substring from a string
<lang j> 3{.5}.'The quick brown fox runs...'</lang>
 
3{.5}.'The quick brown fox runs...'
 
* Replace every occurrence of a byte (or a string) in a string with another string
<lang j> require 'strings'
 
require 'strings'
'The quick brown fox runs...' rplc ' ';' !!! '
</lang>
 
* Join strings
<lang j> 'string1','string2'</lang>
 
'string1','string2'
 
=={{header|Lua}}==
892

edits