Golfscript
1:x;
Lua
x=1
Nim
var x=1
Python
x=1
Coconut
x=1
Swift
var x=1
Javascript
x=1
Janet
(var x 1)
Clojure
(def x 1)
Golfscript
A
Lua
io.write(B)
Nim
write(stdout,C)
Python
print(D,end="")
Coconut
print(E,end="")
Swift
print(F,terminator:"")
Javascript
write(G)
Janet
(prin H)
Clojure
(pr I)
Golfscript
1
Lua
1
Nim
1
Python
1
Coconut
1
Swift
1
Javascript
1
Janet
1
Clojure
1
Nim
var
x= @[1]
y=toSeq(x)
Python
x=[1]
y=[*x]
Coconut
x=[1]
y=[*x]
Swift
var x=[1],y=x
Javascript
x=[1]
y=[...x]
Janet
(var x @[1])(var y @[;x])
Python
import copy
x=[[1]]
y=copy.deepcopy(x)
Coconut
import copy
x=[[1]]
y=copy.deepcopy(x)
Swift
var x=[[1]],y=x
Javascript
x=[[1]]
y=structuredClone(x)
Janet
(var x @[@[1]])(var y(thaw x))
Golfscript
10000000000000000000000000000000000000000
Python
print(0x1d6329f1c35ca4bfabb9f5610000000000,end="")
Coconut
print(0x1d6329f1c35ca4bfabb9f5610000000000,end="")
Javascript
write(0x1d6329f1c35ca4bfabb9f5610000000000n)
Golfscript
1{0}{0}if
Lua
if true then io.write(0)else io.write(0)end
Nim
if true:write(stdout,0)else:write(stdout,0)
Python
if 1:print(0,end="")
else:print(0,end="")
Coconut
if 1:print(0,end="")
else:print(0,end="")
Swift
if true{print(0,terminator:"")}else{print(0,terminator:"")}
Javascript
if(true)write(0)else write(0)
Janet
(if true(prin 0)(prin 0))
Clojure
(if true(pr 0)(pr 0))
Golfscript
10,4>{;0}%
Lua
for x=4,9 do io.write(0)end
Nim
for x in 4..<10:write(stdout,0)
Python
for x in range(4,10):print(0,end="")
Coconut
for x in range(4,10):print(0,end="")
Swift
for x in 4..<10{print(0,terminator:"")}
Javascript
for(x=4;x<10;++x)write(0)
Janet
(for x 4 10(prin 0))
Clojure
(doseq[x(range 4 10)](pr 0))
Golfscript
10,4>3%{;0}%
Lua
for x=4,9,3 do io.write(0)end
Nim
for x in countup(4,10,3):write(stdout,0)
Python
for x in range(4,10,3):print(0,end="")
Coconut
for x in range(4,10,3):print(0,end="")
Swift
for x in stride(from:4,to:10,by:3){print(0,terminator:"")}
Javascript
for(x=4;x<10;x+=3)write(0)
Janet
(loop[x :range[4 10 3]](prin 0))
Clojure
(doseq[x(range 4 10 3)](pr 0))
Golfscript
{1}{0}while
Lua
while true do io.write(0)end
Nim
while true:write(stdout,0)
Python
while 1:print(0,end="")
Coconut
while 1:print(0,end="")
Swift
while true{print(0,terminator:"")}
Javascript
while(true)write(0)
Janet
(while true(prin 0))
Clojure
(while true(pr 0))
Golfscript
:a;a{;0}%
Lua
for x=0,99 do X=arg[1+x]
io.write(0)end
Nim
import os
for x in commandLineParams():write(stdout,0)
Python
import sys
for x in sys.argv[1:]:print(0,end="")
Coconut
for x in os.sys.argv[1:]:print(0,end="")
Swift
for x in CommandLine.arguments[1...]{print(0,terminator:"")}
Javascript
for(x of arguments)write(0)
Janet
(each x(slice(dyn :args)1)(prin 0))
Clojure
(doseq[x *command-line-args*](pr 0))
Golfscript
1 1 1 if
Lua
true and 1 or 1
Nim
if true:1 else:1
Python
1if 1else 1
Coconut
1if 1else 1
Swift
true ?1:1
Javascript
true?1:1
Janet
(if true 1 1)
Clojure
(if true 1 1)
Golfscript
1 1 1 if
Lua
true and 1 or 1
Nim
if true:1 else:1
Python
1if 1else 1
Coconut
1if 1else 1
Swift
true ?1:1
Javascript
true?1:1
Janet
(if true 1 1)
Clojure
(if true 1 1)
Golfscript
20
Lua
20
Nim
20
Python
20
Coconut
20
Swift
20
Javascript
20
Janet
20
Clojure
20
Golfscript
[1]
Lua
{1}
Nim
@[1]
Python
[1]
Coconut
[1]
Swift
[1]
Javascript
[1]
Janet
@[1]
Clojure
[1]
Golfscript
[1]
Lua
{1}
Nim
[1]
Python
[1]
Coconut
[1]
Swift
[1]
Javascript
[1]
Janet
@[1]
Clojure
[1]
Nim
[1].toSet
Python
{1}
Coconut
{1}
Swift
Set([1])
Lua
{1=1}
Nim
import tables
{1:1}.toTable
Python
{1:1}
Coconut
{1:1}
Swift
[1:1]
Javascript
{[1]:1}
Janet
@{1 1}
Clojure
{1 1}
Golfscript
0 1=:x;
Lua
x=0==1
Nim
var x=0==1
Python
x=0==1
Coconut
x=0==1
Swift
var x=0==1
Javascript
x=0==1
Janet
(var x(= 0 1))
Clojure
(def x(= 0 1))
Golfscript
1 1=:x;
Lua
x=1==1
Nim
var x=1==1
Python
x=1==1
Coconut
x=1==1
Swift
var x=1==1
Javascript
x=1==1
Janet
(var x(= 1 1))
Clojure
(def x(= 1 1))
Golfscript
1 B+
Lua
io.write(1+C)
Nim
write(stdout,1+D)
Python
print(1+E,end="")
Coconut
print(1+F,end="")
Swift
print(1+G,terminator:"")
Javascript
write(1+H)
Janet
(prin(+ 1 I))
Clojure
(pr(+ 1 J))
Golfscript
K 1-
Lua
io.write(L-1)
Nim
write(stdout,M-1)
Python
print(N-1,end="")
Coconut
print(O-1,end="")
Swift
print(P-1,terminator:"")
Javascript
write(Q-1)
Janet
(prin(- R 1))
Clojure
(pr(- S 1))
Golfscript
T U+
Lua
io.write(V+W)
Nim
write(stdout,X+Y)
Python
print(Z+A,end="")
Coconut
print(B+C,end="")
Swift
print(D+E,terminator:"")
Javascript
write(F+G)
Janet
(prin(+ H I))
Clojure
(pr(+ J K))
Golfscript
L M-
Lua
io.write(N-O)
Nim
write(stdout,P-Q)
Python
print(R-S,end="")
Coconut
print(T-U,end="")
Swift
print(V-W,terminator:"")
Javascript
write(X-Y)
Janet
(prin(- Z A))
Clojure
(pr(- B C))
Golfscript
D E*
Lua
io.write(F*G)
Nim
write(stdout,H*I)
Python
print(J*K,end="")
Coconut
print(L*M,end="")
Swift
print(N*O,terminator:"")
Javascript
write(P*Q)
Janet
(prin(* R S))
Clojure
(pr(* T U))
Golfscript
V W/
Lua
io.write(X//Y)
Nim
write(stdout,Z/%A)
Python
print(B//C,end="")
Coconut
print(D//E,end="")
Swift
print(F/G,terminator:"")
Javascript
write(Math.floor(H/I))
Janet
(prin(div J K))
Clojure
(pr(quot L M))
Golfscript
N O?
Python
print(T**U,end="")
Coconut
print(V**W,end="")
Javascript
write(Z**A)
Golfscript
F G%
Lua
io.write(H%I)
Nim
write(stdout,J%%K)
Python
print(L%M,end="")
Coconut
print(N%O,end="")
Swift
print(P%Q,terminator:"")
Javascript
write(R%S)
Janet
(prin(% T U))
Clojure
(pr(mod V W))
Golfscript
1 1&
Lua
io.write(1&1)
Nim
write(stdout,1 and 1)
Python
print(1&1,end="")
Coconut
print(1&1,end="")
Swift
print(1&1,terminator:"")
Javascript
write(1&1)
Janet
(prin(band 1 1))
Clojure
(pr(bit-and 1 1))
Golfscript
1 1|
Lua
io.write(1|1)
Nim
write(stdout,1 or 1)
Python
print(1|1,end="")
Coconut
print(1|1,end="")
Swift
print(1|1,terminator:"")
Javascript
write(1|1)
Janet
(prin(bor 1 1))
Clojure
(pr(bit-or 1 1))
Golfscript
1 1^
Lua
io.write(1~1)
Nim
write(stdout,1 xor 1)
Python
print(1^1,end="")
Coconut
print(1^1,end="")
Swift
print(1^1,terminator:"")
Javascript
write(1^1)
Janet
(prin(bxor 1 1))
Clojure
(pr(bit-xor 1 1))
Golfscript
Z 2 A?*
Python
print(F<<G,end="")
Coconut
print(H<<I,end="")
Javascript
write(L<<M)
Golfscript
R 2 S?/
Lua
io.write(T>>U)
Nim
write(stdout,V shr W)
Python
print(X>>Y,end="")
Coconut
print(Z>>A,end="")
Swift
print(B>>C,terminator:"")
Javascript
write(D>>E)
Janet
(prin(brshift F G))
Clojure
(pr(bit-shift-right H I))
Golfscript
1 1{.}{.@@%}while;
Nim
import math
write(stdout,gcd(1,1))
Python
import math
print(math.gcd(1,1),end="")
Coconut
import math
print(math.gcd(1,1),end="")
Janet
(prin(math/gcd 1 1))
Golfscript
[B C]$0=
Lua
io.write(math.min(D,E))
Nim
write(stdout,min(F,G))
Python
print(min(H,I),end="")
Coconut
print(min(J,K),end="")
Swift
print(min(L,M),terminator:"")
Javascript
write(Math.min(N,O))
Janet
(prin(min P Q))
Clojure
(pr(min R S))
Golfscript
[T U]$1=
Lua
io.write(math.max(V,W))
Nim
write(stdout,max(X,Y))
Python
print(max(Z,A),end="")
Coconut
print(max(B,C),end="")
Swift
print(max(D,E),terminator:"")
Javascript
write(Math.max(F,G))
Janet
(prin(max H I))
Clojure
(pr(max J K))
Golfscript
-1 L*
Lua
io.write(-M)
Nim
write(stdout,-N)
Python
print(-O,end="")
Coconut
print(-P,end="")
Swift
print(-Q,terminator:"")
Javascript
write(-R)
Janet
(prin(- S))
Clojure
(pr(- T))
Golfscript
1 abs
Lua
io.write(math.abs(1))
Nim
write(stdout,abs(1))
Python
print(abs(1),end="")
Coconut
print(abs(1),end="")
Swift
print(abs(1),terminator:"")
Javascript
write(abs(1))
Janet
(prin(math/abs 1))
Clojure
(pr(abs 1))
Golfscript
1~
Lua
io.write(~1)
Nim
write(stdout,not 1)
Python
print(~1,end="")
Coconut
print(~1,end="")
Swift
print(~1,terminator:"")
Javascript
write(~1)
Janet
(prin(bnot 1))
Clojure
(pr(bit-not 1))
Golfscript
1 2base 0+{+}*
Nim
include math
write(stdout,popcount(1))
Python
print(1.bit_count(),end="")
Coconut
print(1.bit_count(),end="")
Swift
print(String(1,radix:2).filter({$0>"0"}).count,terminator:"")
Javascript
write(1.toString(2).replace(/0/g,``).length)
Clojure
(pr(Long/bitCount 1))
Lua
io.write(io.read())
Nim
write(stdout,readLine(stdin))
Python
print(end=input())
Coconut
print(end=input())
Swift
print(readLine(),terminator:"")
Golfscript
:a;a 1=
Lua
io.write(arg[2])
Nim
import os
write(stdout,paramStr(2))
Python
import sys
print(end=sys.argv[2])
Coconut
print(end=os.sys.argv[2])
Swift
print(CommandLine.arguments[2],terminator:"")
Javascript
write(arguments[1])
Janet
(prin((dyn :args)2))
Clojure
(print(nth *command-line-args* 1))
Golfscript
"x":x;
Lua
x=io.write("x")
Nim
var x=write(stdout,"x")
Python
x=print(end="x")
Coconut
x=print(end="x")
Swift
var x=print("x",terminator:"")
Javascript
x=write`x`
Janet
(var x(prin"x"))
Clojure
(def x(print"x"))
Golfscript
1:x;
Lua
x=io.write(1)
Nim
var x=write(stdout,1)
Python
x=print(1,end="")
Coconut
x=print(1,end="")
Swift
var x=print(1,terminator:"")
Javascript
x=write(1)
Janet
(var x(prin 1))
Clojure
(def x(pr 1))
Golfscript
"x
":x;
Lua
x=print("x")
Nim
var x=echo("x")
Python
x=print("x")
Coconut
x=print("x")
Swift
var x=print("x")
Javascript
x=print`x`
Janet
(var x(print"x"))
Clojure
(def x(println"x"))
Golfscript
1"
"+:x;
Lua
x=print(1)
Nim
var x=echo(1)
Python
x=print(1)
Coconut
x=print(1)
Swift
var x=print(1)
Javascript
x=print(1)
Janet
(var x(pp 1))
Clojure
(def x(prn 1))
Golfscript
[1]""+:x;
Lua
x=io.write(string.char(1))
Nim
var x=write(stdout,chr(1))
Python
x=print(end=chr(1))
Coconut
x=print(end=chr(1))
Swift
var x=print(String(UnicodeScalar(1)!),terminator:"")
Javascript
x=write(String.fromCharCode(1))
Janet
(var x(prin(string/format"%c"1)))
Nim
import unicode
var x=write(stdout,$Rune(1))
Python
x=print(end=chr(1))
Coconut
x=print(end=chr(1))
Swift
var x=print(String(UnicodeScalar(1)!),terminator:"")
Clojure
(def x(print(str(char 1))))
Golfscript
[1]""+:x;
Lua
x=io.write(string.char(1))
Nim
var x=write(stdout,chr(1))
Python
x=print(end=chr(1))
Coconut
x=print(end=chr(1))
Swift
var x=print(String(UnicodeScalar(1)!),terminator:"")
Javascript
x=write(String.fromCharCode(1))
Janet
(var x(prin(string/format"%c"1)))
Clojure
(def x(print(str(char 1))))
Golfscript
1 1 or:x;
Lua
x=true or true
Nim
var x=true or true
Python
x=1or 1
Coconut
x=1or 1
Swift
var x=true||true
Javascript
x=true||true
Janet
(var x(or true true))
Clojure
(def x(or true true))
Golfscript
1 1 and:x;
Lua
x=true and true
Nim
var x=true and true
Python
x=1and 1
Coconut
x=1and 1
Swift
var x=true&&true
Javascript
x=true&&true
Janet
(var x(and true true))
Clojure
(def x(and true true))
Golfscript
1 1 or:x;
Lua
x=true or true
Nim
var x=true or true
Python
x=1or 1
Coconut
x=1or 1
Swift
var x=true||true
Javascript
x=true||true
Janet
(var x(or true true))
Clojure
(def x(or true true))
Golfscript
1 1 and:x;
Lua
x=true and true
Nim
var x=true and true
Python
x=1and 1
Coconut
x=1and 1
Swift
var x=true&&true
Javascript
x=true&&true
Janet
(var x(and true true))
Clojure
(def x(and true true))
Golfscript
1!:x;
Lua
x=not true
Nim
var x=not true
Python
x=not 1
Coconut
x=not 1
Swift
var x=!true
Javascript
x=!true
Janet
(var x(not true))
Clojure
(def x(not true))
Golfscript
1:x;
Lua
x=true
Nim
var x=true
Python
x=1
Coconut
x=1
Swift
var x=true
Javascript
x=true
Janet
(var x true)
Clojure
(def x true)
Golfscript
0:x;
Lua
x=false
Nim
var x=false
Python
x=0
Coconut
x=0
Swift
var x=false
Javascript
x=false
Janet
(var x false)
Clojure
(def x false)
Golfscript
1 1<:x;
Lua
x=1<1
Nim
var x=1<1
Python
x=1<1
Coconut
x=1<1
Swift
var x=1<1
Javascript
x=1<1
Janet
(var x(< 1 1))
Clojure
(def x(< 1 1))
Golfscript
0 1<:x;
Lua
x=1<=1
Nim
var x=1<=1
Python
x=1<=1
Coconut
x=1<=1
Swift
var x=1<=1
Javascript
x=1<=1
Janet
(var x(<= 1 1))
Clojure
(def x(<= 1 1))
Golfscript
2 1>:x;
Lua
x=1>=1
Nim
var x=1>=1
Python
x=1>=1
Coconut
x=1>=1
Swift
var x=1>=1
Javascript
x=1>=1
Janet
(var x(>= 1 1))
Clojure
(def x(>= 1 1))
Golfscript
1 1>:x;
Lua
x=1>1
Nim
var x=1>1
Python
x=1>1
Coconut
x=1>1
Swift
var x=1>1
Javascript
x=1>1
Janet
(var x(> 1 1))
Clojure
(def x(> 1 1))
Golfscript
1 1=:x;
Lua
x=1==1
Nim
var x=1==1
Python
x=1==1
Coconut
x=1==1
Swift
var x=1==1
Javascript
x=1==1
Janet
(var x(= 1 1))
Clojure
(def x(= 1 1))
Golfscript
"x""x"=:x;
Lua
x="x"=="x"
Nim
var x="x"=="x"
Python
x="x"=="x"
Coconut
x="x"=="x"
Swift
var x="x"=="x"
Javascript
x="x"=="x"
Janet
(var x(="x""x"))
Clojure
(def x(="x""x"))
Golfscript
1 1=!:x;
Lua
x=1~=1
Nim
var x=1!=1
Python
x=1!=1
Coconut
x=1!=1
Swift
var x=1 != 1
Javascript
x=1!=1
Janet
(var x(not= 1 1))
Clojure
(def x(not= 1 1))
Golfscript
"x""x"=!:x;
Lua
x="x"~="x"
Nim
var x="x"!="x"
Python
x="x"!="x"
Coconut
x="x"!="x"
Swift
var x="x" != "x"
Javascript
x="x"!="x"
Janet
(var x(not="x""x"))
Clojure
(def x(not="x""x"))
Golfscript
[1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1]1=
Lua
io.write(({1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1})[2])
Nim
write(stdout,[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,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1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1]1))
Clojure
(pr(nth[1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1]1))
Golfscript
[1]1=
Lua
io.write(({1})[2])
Nim
write(stdout,@[1][1])
Python
print([1][1],end="")
Coconut
print([1][1],end="")
Swift
print([1][1],terminator:"")
Javascript
write([1][1])
Janet
(prin(@[1]1))
Clojure
(pr(nth[1]1))
Golfscript
[1]-1=
Lua
io.write(({1})[#{1}])
Nim
write(stdout,@[1][^1])
Python
print([1][-1],end="")
Coconut
print([1][-1],end="")
Swift
print([1][[1].count-1],terminator:"")
Janet
(prin(last @[1]))
Clojure
(pr(last[1]))
Golfscript
I 1=
Lua
io.write(({1=1})[1])
Nim
import tables
write(stdout,{1:1}.toTable[1])
Python
print({1:1}[1],end="")
Coconut
print({1:1}[1],end="")
Swift
print([1:1][1]!,terminator:"")
Javascript
write({[1]:1}[1])
Janet
(prin(@{1 1}1))
Clojure
(pr({1 1}1))
Golfscript
["x"1=]""+
Lua
io.write(("x"):sub(2,2))
Nim
write(stdout,"x"[1])
Python
print(end="x"[1])
Coconut
print(end="x"[1])
Swift
print(String(Array("x")[1]),terminator:"")
Javascript
write("x"[1])
Janet
(prin(slice"x"1 2))
Clojure
(print(str(nth"x"1)))
Golfscript
["x"-1=]""+
Lua
io.write(("x"):sub(-1,-1))
Nim
write(stdout,"x"[^1])
Python
print(end="x"[-1])
Coconut
print(end="x"[-1])
Swift
print(String(Array("x")[0]),terminator:"")
Golfscript
["x"1=]""+
Lua
io.write(("x"):sub(2,2))
Nim
write(stdout,"x"[1])
Python
print(end=chr(bytes("x","u8")[1]))
Coconut
print(end=chr(bytes("x","u8")[1]))
Swift
print(String(UnicodeScalar(Int(Array("x".utf8)[1]))!),terminator:"")
Janet
(prin(slice"x"1 2))
Golfscript
["x"-1=]""+
Lua
io.write(("x"):sub(-1,-1))
Nim
write(stdout,"x"[^1])
Python
print(end=chr(bytes("x","u8")[-1]))
Coconut
print(end=chr(bytes("x","u8")[-1]))
Swift
print(String(UnicodeScalar(Int(Array("x".utf8)[0]))!),terminator:"")
Nim
import unicode
write(stdout,$toRunes("x")[1])
Python
print(end="x"[1])
Coconut
print(end="x"[1])
Swift
print(String(Array("x")[1]),terminator:"")
Clojure
(print(str(nth"x"1)))
Nim
import unicode
write(stdout,$toRunes("x")[^1])
Python
print(end="x"[-1])
Coconut
print(end="x"[-1])
Swift
print(String(Array("x")[0]),terminator:"")
Golfscript
cover#0.1.@<[1]+@@)>+:cover#0;
Lua
cover#1[2]=1
Nim
cover#2[1]=1
Python
cover#3[1]=1
Coconut
cover#4[1]=1
Swift
cover#5[1]=1
Javascript
cover#6[1]=1
Janet
(put cover#7 1 1)
Golfscript
cover#9.1.@<[1]+@@)>+:cover#9;
Lua
cover#10[2]=1
Nim
cover#11[1]=1
Python
cover#12[1]=1
Coconut
cover#13[1]=1
Swift
cover#14[1]=1
Javascript
cover#15[1]=1
Janet
(put cover#16 1 1)
Golfscript
cover#18..,.-1+\%.@<[1]+@@)>+:cover#18;
Lua
cover#19[#cover#19]=1
Nim
cover#20[^1]=1
Python
cover#21[-1]=1
Coconut
cover#22[-1]=1
Swift
cover#23[cover#23.count-1]=1
Janet
(put cover#25(-(length cover#25)1)1)
Golfscript
cover#27.1.@<[1]+@@)>+:cover#27;
Lua
cover#28[1]=1
Nim
cover#29[1]=1
Python
cover#30[1]=1
Coconut
cover#31[1]=1
Swift
cover#32[1]=1
Javascript
cover#33[1]=1
Janet
(put cover#34 1 1)
Python
print(end="x"[1:2])
Coconut
print(end="x"[1:2])
Swift
print("x".prefix(2).suffix(1),terminator:"")
Clojure
(print(subs"x"1 2))
Python
print(end="x"[-1:])
Coconut
print(end="x"[-1:])
Swift
print("x".prefix(1),terminator:"")
Golfscript
"x"2<1>
Lua
io.write(("x"):sub(2,2))
Nim
write(stdout,"x"[1..<2])
Python
print(end=bytes("x","u8")[1:2].decode("u8"))
Coconut
print(end=bytes("x","u8")[1:2].decode("u8"))
Janet
(prin(slice"x"1 2))
Nim
write(stdout,"x"[^1..< ^0])
Python
print(end=bytes("x","u8")[-1:].decode("u8"))
Coconut
print(end=bytes("x","u8")[-1:].decode("u8"))
Golfscript
"x"2<1>
Lua
io.write(("x"):sub(2,2))
Nim
write(stdout,"x"[1..<2])
Python
print(end="x"[1:2])
Coconut
print(end="x"[1:2])
Swift
print("x".prefix(2).suffix(1),terminator:"")
Javascript
write("x".slice(1,2))
Janet
(prin(slice"x"1 2))
Clojure
(print(subs"x"1 2))
Nim
write(stdout,"x"[^1..< ^0])
Python
print(end="x"[-1:])
Coconut
print(end="x"[-1:])
Swift
print("x".prefix(1),terminator:"")
Golfscript
[1]2<1>:x;
Nim
var x= @[1][1..<2]
Python
x=[1][1:2]
Coconut
x=[1][1:2]
Swift
var x=[1][1..<2]
Javascript
x=[1].slice(1,2)
Janet
(var x(slice @[1]1 2))
Clojure
(def x(subvec(vec[1])1 2))
Nim
var x= @[1][^1..< ^0]
Python
x=[1][-1:]
Coconut
x=[1][-1:]
Swift
var x=[1][[1].count-1..<[1].count]
Golfscript
"x")
Lua
io.write(("x"):byte(1))
Nim
write(stdout,ord("x"[0]))
Python
print(ord("x"),end="")
Coconut
print(ord("x"),end="")
Swift
print(Int(Array("x".utf8)[0]),terminator:"")
Janet
(prin("x"0))
Nim
import unicode
write(stdout,ord($toRunes("x")[0]))
Python
print(ord("x"),end="")
Coconut
print(ord("x"),end="")
Swift
print(Array("x".unicodeScalars)[0].value,terminator:"")
Clojure
(pr(int(nth"x"0)))
Golfscript
"x")
Lua
io.write(("x"):byte(1))
Nim
write(stdout,ord("x"[0]))
Python
print(ord("x"),end="")
Coconut
print(ord("x"),end="")
Swift
print(Array("x".unicodeScalars)[0].value,terminator:"")
Javascript
write("x".charCodeAt(0))
Janet
(prin("x"0))
Clojure
(pr(int(nth"x"0)))
Golfscript
[1]""+
Lua
io.write(string.char(1))
Nim
write(stdout,chr(1))
Python
print(end=chr(1))
Coconut
print(end=chr(1))
Swift
print(String(UnicodeScalar(1)!),terminator:"")
Javascript
write(String.fromCharCode(1))
Janet
(prin(string/format"%c"1))
Nim
import unicode
write(stdout,$Rune(1))
Python
print(end=chr(1))
Coconut
print(end=chr(1))
Swift
print(String(UnicodeScalar(1)!),terminator:"")
Clojure
(print(str(char 1)))
Golfscript
[1]""+
Lua
io.write(string.char(1))
Nim
write(stdout,chr(1))
Python
print(end=chr(1))
Coconut
print(end=chr(1))
Swift
print(String(UnicodeScalar(1)!),terminator:"")
Javascript
write(String.fromCharCode(1))
Janet
(prin(string/format"%c"1))
Clojure
(print(str(char 1)))
Python
x=[*"x"]
Coconut
x=[*"x"]
Python
x=[*"x"]
Coconut
x=[*"x"]
Golfscript
[1]$:x;
Nim
include tables
var x=sorted(@[1])
Python
x=sorted([1])
Coconut
x=sorted([1])
Swift
var x=[1].sorted()
Janet
(var x(sorted @[1]))
Clojure
(def x(sort[1]))
Golfscript
["x"]$:x;
Nim
include tables
var x=sorted(@["x"])
Python
x=sorted(["x"])
Coconut
x=sorted(["x"])
Swift
var x=["x"].sorted()
Javascript
x=["x"].sort()
Janet
(var x(sorted @["x"]))
Clojure
(def x(sort["x"]))
Golfscript
"x"-1%
Lua
io.write(string.reverse("x"))
Nim
import strutils,algorithm
write(stdout,join(reversed("x")))
Python
print(end=bytes("x","u8")[::-1].decode("u8"))
Coconut
print(end=bytes("x","u8")[::-1].decode("u8"))
Janet
(prin(reverse"x"))
Nim
import strutils,algorithm,unicode
write(stdout,join(reversed(toRunes("x"))))
Python
print(end="x"[::-1])
Coconut
print(end="x"[::-1])
Swift
print(String("x".reversed()),terminator:"")
Javascript
write([..."x"].reverse().join``)
Clojure
(print(clojure.string/reverse"x"))
Golfscript
"x"-1%
Lua
io.write(string.reverse("x"))
Nim
import strutils,algorithm
write(stdout,join(reversed("x")))
Python
print(end="x"[::-1])
Coconut
print(end="x"[::-1])
Swift
print(String("x".reversed()),terminator:"")
Javascript
write([..."x"].reverse().join``)
Janet
(prin(reverse"x"))
Clojure
(print(clojure.string/reverse"x"))
Golfscript
[1]-1%:x;
Nim
include tables
var x=reversed(@[1])
Python
x=[1][::-1]
Coconut
x=[1][::-1]
Swift
var x=Array([1].reversed())
Javascript
x=[1].reverse()
Janet
(var x(reverse @[1]))
Clojure
(def x(reverse[1]))
Python
print("x".find("x"),end="")
Coconut
print("x".find("x"),end="")
Swift
print("x".contains("x") ?"x".split(separator:"x",omittingEmptySubsequences:false)[0].count:-1,terminator:"")
Clojure
(pr(clojure.string/index-of"x""x"))
Golfscript
"x""x"?
Nim
include re
write(stdout,find("x","x"))
Python
print(bytes("x","u8").find(bytes("x","u8")),end="")
Coconut
print(bytes("x","u8").find(bytes("x","u8")),end="")
Swift
print("x".contains("x") ?"x".split(separator:"x",omittingEmptySubsequences:false)[0].utf8.count:-1,terminator:"")
Janet
(prin(string/find"x""x"))
Golfscript
"x""x"?
Nim
include re
write(stdout,find("x","x"))
Python
print("x".find("x"),end="")
Coconut
print("x".find("x"),end="")
Swift
print("x".contains("x") ?"x".split(separator:"x",omittingEmptySubsequences:false)[0].count:-1,terminator:"")
Javascript
write("x".indexOf`x`)
Janet
(prin(string/find"x""x"))
Clojure
(pr(clojure.string/index-of"x""x"))
Golfscript
[1]1?
Nim
write(stdout,find(@[1],1))
Python
print([1].index(1),end="")
Coconut
print([1].index(1),end="")
Swift
print([1].index(of:1),terminator:"")
Javascript
write([1].indexOf(1))
Golfscript
1[1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1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1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1].includes(1)
Golfscript
1[1]1?+:x;
Nim
var x=1 in@[1]
Python
x=1in[1]
Coconut
x=1in[1]
Swift
var x=[1].contains(1)
Javascript
x=[1].includes(1)
Nim
import tables
var x=1 in{1:1}.toTable
Python
x=1in{1:1}
Coconut
x=1in{1:1}
Swift
var x=[1:1].keys.contains(1)
Javascript
x=1 in{[1]:1}
Janet
(var x(not(nil?(@{1 1}1))))
Clojure
(def x(contains?{1 1}1))
Python
x=1in{1}
Coconut
x=1in{1}
Swift
var x=Set([1]).contains(1)
Golfscript
1"x""x"?+:x;
Nim
var x="x"in "x"
Python
x="x"in"x"
Coconut
x="x"in"x"
Swift
var x="x".contains("x")
Javascript
x="x".includes`x`
Janet
(var x(int?(string/find"x""x")))
Clojure
(def x(clojure.string/includes?"x""x"))
Golfscript
[1],
Lua
io.write(#{1})
Nim
write(stdout,len(@[1]))
Python
print(len([1]),end="")
Coconut
print(len([1]),end="")
Swift
print([1].count,terminator:"")
Javascript
write([1].length)
Janet
(prin(length @[1]))
Clojure
(pr(count[1]))
Python
print(len({1}),end="")
Coconut
print(len({1}),end="")
Swift
print(Set([1]).count,terminator:"")
Lua
io.write(#{1=1})
Nim
import tables
write(stdout,len({1:1}.toTable))
Python
print(len({1:1}),end="")
Coconut
print(len({1:1}),end="")
Swift
print([1:1].count,terminator:"")
Javascript
write(Object.keys({[1]:1}).length)
Janet
(prin(length @{1 1}))
Clojure
(pr(count{1 1}))
Golfscript
Q,
Lua
io.write(R:len())
Nim
write(stdout,len(S))
Python
print(len(T),end="")
Coconut
print(len(U),end="")
Janet
(prin(length X))
Python
print(len(C),end="")
Coconut
print(len(D),end="")
Golfscript
I,
Lua
io.write(J:len())
Nim
write(stdout,len(K))
Python
print(len(bytes(L,"u8")),end="")
Coconut
print(len(bytes(M,"u8")),end="")
Swift
print(N.utf8.count,terminator:"")
Janet
(prin(length P))
Swift
var x=Set([1]).insert(1)
Javascript
x=F.add(1)
Golfscript
[1][1]+:x;
Nim
var x= @[1]&1
Python
x=[1]+[1]
Coconut
x=[1]+[1]
Swift
var x=[1]+[1]
Javascript
x=[1].concatenate([1])
Janet
(var x(array/concat @[]@[1]@[1]))
Clojure
(def x(conj(vec[1])1))
Golfscript
cover#36[1]+:cover#36;
Nim
cover#38&=1
Python
cover#39=cover#39+[1]
Coconut
cover#40=cover#40+[1]
Swift
var cover#41=cover#41+[1]
Javascript
cover#42.push(1)
Janet
(var cover#43(array/concat @[]cover#43 @[1]))
Clojure
(def cover#44(conj(vec cover#44)1))
Golfscript
[1][1]+:x;
Nim
var x= @[1]& @[1]
Python
x=[1]+[1]
Coconut
x=[1]+[1]
Swift
var x=[1]+[1]
Javascript
x=[1].concatenate([1])
Janet
(var x(array/concat @[]@[1]@[1]))
Clojure
(def x(concat[1][1]))
Golfscript
Y Z+
Lua
io.write(A..B)
Nim
write(stdout,C&D)
Python
print(end=E+F)
Coconut
print(end=G+H)
Swift
print(I+J,terminator:"")
Javascript
write(K+L)
Janet
(prin(string M N))
Clojure
(print(str O P))
Golfscript
"x"1*
Lua
io.write(("x"):rep(1))
Nim
include re
write(stdout,repeat("x",1))
Python
print(end="x"*1)
Coconut
print(end="x"*1)
Swift
print(String(repeating:"x",count:1),terminator:"")
Javascript
write("x".repeat(1))
Janet
(prin(string/repeat"x"1))
Clojure
(print(apply str(repeat 1"x")))
Golfscript
"x""x"/:x;
Nim
include re
var x=split("x","x")
Python
x="x".split("x")
Coconut
x="x".split("x")
Swift
var x="x".split(separator:"x",omittingEmptySubsequences:false)
Javascript
x="x".split`x`
Janet
(var x(string/split"x""x"))
Clojure
(def x(.split"x""x"))
Golfscript
"x"{...9<\13>+*\32if}%" "/:x;
Nim
include re
var x=split("x")
Python
x="x".split()
Coconut
x="x".split()
Golfscript
["x"]"x"*
Lua
io.write(table.concat({"x"},"x"))
Nim
include re
write(stdout,join(@["x"],"x"))
Python
print(end="x".join(["x"]))
Coconut
print(end="x".join(["x"]))
Swift
print(["x"].joined(separator:"x"),terminator:"")
Javascript
write(["x"].join`x`)
Janet
(prin(string/join @["x"]"x"))
Clojure
(print(clojure.string/join"x"["x"]))
Golfscript
"x"1 1$,-.0>*" "*\+
Nim
include re
write(stdout,align("x",1))
Python
print(end="%1s"%"x")
Coconut
print(end="%1s"%"x")
Swift
print((String(repeating:" ",count:1)+"x").suffix(1),terminator:"")
Javascript
write("x".padStart(1))
Janet
(prin(string/format"%1s""x"))
Clojure
(print(format"%1s""x"))
Golfscript
"x""x"/"x"*
Lua
io.write(("x"):gsub("x","x"))
Nim
include re
write(stdout,replace("x","x","x"))
Python
print(end="x".replace(*"xx"))
Coconut
print(end="x".replace(*"xx"))
Swift
import Foundation
print("x".replacingOccurrences(of:"x",with:"x"),terminator:"")
Javascript
write("x".replaceAll("x","x"))
Janet
(prin(peg/replace-all"x""x""x"))
Clojure
(print(clojure.string/replace"x""x""x"))
Lua
x=("x"):sub(1,1)=="x"
Nim
include re
var x=startsWith("x","x")
Python
x="x".startsWith("x")
Coconut
x="x".startsWith("x")
Swift
var x="x".hasPrefix("x")
Javascript
x="x".startsWith`x`
Clojure
(def x(clojure.string/starts-with?"x""x"))
Nim
include re
var x=endsWith("x","x")
Python
x="x".endsWith("x")
Coconut
x="x".endsWith("x")
Swift
var x="x".hasSuffix("x")
Javascript
x="x".endsWith`x`
Clojure
(def x(clojure.string/ends-with?"x""x"))
Golfscript
1 1 2base""+\1$,-.0>*"0"*\+
Nim
include re
write(stdout,align(toBin(1),1,'0'))
Python
print(end=format(1,"01b"))
Coconut
print(end=format(1,"01b"))
Swift
print((String(repeating:"0",count:1)+String(1,radix:2)).suffix(1),terminator:"")
Javascript
write(1.toString(2).padStart(1,0))
Golfscript
1 1 16base{.9>39*+48+}%""+\1$,-.0>*"0"*\+
Nim
include re
write(stdout,align(toLowerAscii(toHex(1)),1,'0'))
Python
print(end="%01x"%1)
Coconut
print(end="%01x"%1)
Swift
import Foundation
print(String(format:"%01x",1),terminator:"")
Javascript
write(1.toString(16).padStart(1,0))
Janet
(prin(string/format"%01x"1))
Clojure
(print(format"%01x"1))
Golfscript
1 1 16base{.9>7*+48+}%""+\1$,-.0>*"0"*\+
Nim
include re
write(stdout,align(toHex(1),1,'0'))
Python
print(end="%01X"%1)
Coconut
print(end="%01X"%1)
Swift
import Foundation
print(String(format:"%01X",1),terminator:"")
Javascript
write(1.toString(16).toUpperCase().padStart(1,0))
Janet
(prin(string/format"%01X"1))
Clojure
(print(format"%01X"1))
Golfscript
1
Lua
io.write(1)
Nim
write(stdout,1)
Python
print(1,end="")
Coconut
print(1,end="")
Swift
print(1,terminator:"")
Javascript
write(1)
Janet
(prin 1)
Clojure
(pr 1)
Golfscript
1 2 base""*
Nim
include re
write(stdout,toBin(1))
Python
print(end=format(1,"b"))
Coconut
print(end=format(1,"b"))
Swift
print(String(1,radix:2),terminator:"")
Javascript
write(1.toString(2))
Golfscript
1 16 base{.9>39*+48+}%""+
Lua
io.write(string.format("%x",1))
Nim
include re
write(stdout,toLowerAscii(toHex(1)))
Python
print(end="%x"%1)
Coconut
print(end="%x"%1)
Swift
print(String(1,radix:16,uppercase:false),terminator:"")
Javascript
write(1.toString(16))
Janet
(prin(string/format"%x"1))
Clojure
(print(format"%x"1))
Golfscript
1 16 base{.9>7*+48+}%""+
Nim
include re
write(stdout,toHex(1))
Python
print(end="%X"%1)
Coconut
print(end="%X"%1)
Swift
print(String(1,radix:16,uppercase:true),terminator:"")
Javascript
write(1.toString(16).toUpperCase())
Janet
(prin(string/format"%X"1))
Clojure
(print(format"%X"1))
Golfscript
1:x;
Nim
var x=1==0
Python
x=1
Coconut
x=1
Swift
var x=1 != 0
Javascript
x=1
Janet
(var x(not= 1 0))
Clojure
(def x(not= 1 0))
Golfscript
"x"
Lua
io.write("x")
Nim
write(stdout,"x")
Python
print(end="x")
Coconut
print(end="x")
Swift
print("x",terminator:"")
Javascript
write`x`
Janet
(prin"x")
Clojure
(print"x")
Golfscript
1
Nim
write(stdout,int(true))
Python
print(1*1,end="")
Coconut
print(1*1,end="")
Swift
print(true ?1:0,terminator:"")
Javascript
write(true)
Janet
(prin(if true 1 0))
Clojure
(pr(if true 1 0))
Nim
include prelude
var x=toSeq(1..1)
Swift
var x=1...1
Nim
include prelude
var x=toSeq(1..<10)
Python
x=[*range(1,10)]
Coconut
x=[*range(1,10)]
Swift
var x=1..<10