Skip to content

Latest commit

 

History

History
6701 lines (4349 loc) · 48.3 KB

opcodes-outputs.generated.md

File metadata and controls

6701 lines (4349 loc) · 48.3 KB

Features

assignment

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)

builtin

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)

discard

Golfscript

1

Lua

1

Nim

1

Python

1

Coconut

1

Swift

1

Javascript

1

Janet

1

Clojure

1

list clone

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])

list of list clone

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))

bigint

Golfscript

10000000000000000000000000000000000000000

Python

print(0x1d6329f1c35ca4bfabb9f5610000000000,end="")

Coconut

print(0x1d6329f1c35ca4bfabb9f5610000000000,end="")

Javascript

write(0x1d6329f1c35ca4bfabb9f5610000000000n)

if

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))

for

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))

for with step

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))

while

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))

for_argv

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))

conditional

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)

unsafe_conditional

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)

any_int

Golfscript

20

Lua

20

Nim

20

Python

20

Coconut

20

Swift

20

Javascript

20

Janet

20

Clojure

20

list

Golfscript

[1]

Lua

{1}

Nim

@[1]

Python

[1]

Coconut

[1]

Swift

[1]

Javascript

[1]

Janet

@[1]

Clojure

[1]

array

Golfscript

[1]

Lua

{1}

Nim

[1]

Python

[1]

Coconut

[1]

Swift

[1]

Javascript

[1]

Janet

@[1]

Clojure

[1]

set

Nim

[1].toSet

Python

{1}

Coconut

{1}

Swift

Set([1])

table

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}

OpCodes

is_even

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))

is_odd

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))

succ

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))

pred

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))

add

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))

sub

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))

mul

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))

div

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))

pow

Golfscript

N O?

Python

print(T**U,end="")

Coconut

print(V**W,end="")

Javascript

write(Z**A)

mod

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))

bit_and

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))

bit_or

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))

bit_xor

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))

bit_shift_left

Golfscript

Z 2 A?*

Python

print(F<<G,end="")

Coconut

print(H<<I,end="")

Javascript

write(L<<M)

bit_shift_right

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))

gcd

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))

min

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))

max

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))

neg

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))

abs

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))

bit_not

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))

bit_count

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))

read[line]

Lua

io.write(io.read())

Nim

write(stdout,readLine(stdin))

Python

print(end=input())

Coconut

print(end=input())

Swift

print(readLine(),terminator:"")

at[argv]

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))

print[Text]

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"))

print[Int]

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))

println[Text]

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"))

println[Int]

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))

putc[byte]

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)))

putc[codepoint]

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))))

putc[Ascii]

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))))

or

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))

and

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))

unsafe_or

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))

unsafe_and

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))

not

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))

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)

false

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)

lt

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))

leq

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))

geq

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))

gt

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))

eq[Int]

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))

eq[Text]

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"))

neq[Int]

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))

neq[Text]

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"))

at[Array]

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,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1][1])

Python

print([1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1][1],end="")

Coconut

print([1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1][1],end="")

Swift

print([1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1][1],terminator:"")

Javascript

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][1])

Janet

(prin(@[1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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))

at[List]

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))

at_back[List]

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]))

at[Table]

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))

at[Ascii]

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)))

at_back[Ascii]

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:"")

at[byte]

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))

at_back[byte]

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:"")

at[codepoint]

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)))

at_back[codepoint]

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:"")

with_at[Array]<-

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)

with_at[List]<-

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)

with_at_back[List]<-

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)

with_at[Table]<-

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)

slice[codepoint]

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))

slice_back[codepoint]

Python

print(end="x"[-1:])

Coconut

print(end="x"[-1:])

Swift

print("x".prefix(1),terminator:"")

slice[byte]

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))

slice_back[byte]

Nim

write(stdout,"x"[^1..< ^0])

Python

print(end=bytes("x","u8")[-1:].decode("u8"))

Coconut

print(end=bytes("x","u8")[-1:].decode("u8"))

slice[Ascii]

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))

slice_back[Ascii]

Nim

write(stdout,"x"[^1..< ^0])

Python

print(end="x"[-1:])

Coconut

print(end="x"[-1:])

Swift

print("x".prefix(1),terminator:"")

slice[List]

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))

slice_back[List]

Nim

var x= @[1][^1..< ^0]

Python

x=[1][-1:]

Coconut

x=[1][-1:]

Swift

var x=[1][[1].count-1..<[1].count]

ord[byte]

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))

ord[codepoint]

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)))

ord[Ascii]

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)))

char[byte]

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))

char[codepoint]

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)))

char[Ascii]

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)))

text_to_list[codepoint]

Python

x=[*"x"]

Coconut

x=[*"x"]

text_to_list[Ascii]

Python

x=[*"x"]

Coconut

x=[*"x"]

sorted[Int]

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]))

sorted[Ascii]

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"]))

reversed[byte]

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"))

reversed[codepoint]

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"))

reversed[Ascii]

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"))

reversed[List]

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]))

find[codepoint]

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"))

find[byte]

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"))

find[Ascii]

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"))

find[List]

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))

contains[Array]

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]1?+:x;

Nim

var x=1 in[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]

Python

x=1in[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]

Coconut

x=1in[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]

Swift

var x=[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1].contains(1)

Javascript

x=[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,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)

contains[List]

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)

contains[Table]

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))

contains[Set]

Python

x=1in{1}

Coconut

x=1in{1}

Swift

var x=Set([1]).contains(1)

contains[Text]

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"))

size[List]

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]))

size[Set]

Python

print(len({1}),end="")

Coconut

print(len({1}),end="")

Swift

print(Set([1]).count,terminator:"")

size[Table]

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}))

size[Ascii]

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))

size[codepoint]

Python

print(len(C),end="")

Coconut

print(len(D),end="")

size[byte]

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))

include

Swift

var x=Set([1]).insert(1)

Javascript

x=F.add(1)

append

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))

append<-

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))

concat[List]

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]))

concat[Text]

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))

repeat

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")))

split

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"))

split_whitespace

Golfscript

"x"{...9<\13>+*\32if}%" "/:x;

Nim

include re
var x=split("x")

Python

x="x".split()

Coconut

x="x".split()

join

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"]))

right_align

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"))

replace

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"))

starts_with

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"))

ends_with

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"))

int_to_bin_aligned

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))

int_to_hex_aligned

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))

int_to_Hex_aligned

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))

int_to_dec

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)

int_to_bin

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))

int_to_hex

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))

int_to_Hex

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))

int_to_bool

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))

dec_to_int

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")

bool_to_int

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))

range_incl

Nim

include prelude
var x=toSeq(1..1)

Swift

var x=1...1

range_excl

Nim

include prelude
var x=toSeq(1..<10)

Python

x=[*range(1,10)]

Coconut

x=[*range(1,10)]

Swift

var x=1..<10