Skip to main content
Commonmark migration
Source Link

#Japt, 8 bytes

Japt, 8 bytes

á2 ËrbÃe 

Try it

á2 ËrbÃe :Implicit input of array á2 :Permutations of length 2 Ë :Map each pair r : Reduce by b : Get the index of the second in the first - 0 (falsey) if it's a prefix à :End map e :All truthy (-1 or >0) 

#Japt, 8 bytes

á2 ËrbÃe 

Try it

á2 ËrbÃe :Implicit input of array á2 :Permutations of length 2 Ë :Map each pair r : Reduce by b : Get the index of the second in the first - 0 (falsey) if it's a prefix à :End map e :All truthy (-1 or >0) 

Japt, 8 bytes

á2 ËrbÃe 

Try it

á2 ËrbÃe :Implicit input of array á2 :Permutations of length 2 Ë :Map each pair r : Reduce by b : Get the index of the second in the first - 0 (falsey) if it's a prefix à :End map e :All truthy (-1 or >0) 
added 301 characters in body
Source Link
Shaggy
  • 45k
  • 4
  • 39
  • 95

#Japt, 8 bytes

á2 ËrbÃe 

Try it

á2 ËrbÃe :Implicit input of array á2 :Permutations of length 2 Ë :Map each pair r : Reduce by b : Get the index of the second in the first - 0 (falsey) if it's a prefix à :End map e :All truthy (-1 or >0) 

#Japt, 8 bytes

á2 ËrbÃe 

Try it

#Japt, 8 bytes

á2 ËrbÃe 

Try it

á2 ËrbÃe :Implicit input of array á2 :Permutations of length 2 Ë :Map each pair r : Reduce by b : Get the index of the second in the first - 0 (falsey) if it's a prefix à :End map e :All truthy (-1 or >0) 
Source Link
Shaggy
  • 45k
  • 4
  • 39
  • 95

#Japt, 8 bytes

á2 ËrbÃe 

Try it