Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Challenges

Post History

66%
+2 −0
Challenges Can you give me half?

Raku (also Perl polyglot), 5 unique, 13 bytes !()/(!()+!()) () or empty list coerces to its length which is 0 in math operations and !0 is True which coerces to 1

posted 3y ago by Hydrazer‭  ·  edited 3y ago by Hydrazer‭

Answer
#6: Post edited by user avatar Hydrazer‭ · 2022-02-10T03:59:47Z (almost 3 years ago)
  • # Raku (also Perl polyglot), 4 unique, 13 bytes
  • ```
  • !()/(!()+!())
  • ```
  • () or empty list coerces to its length which is 0 in math operations and !0 is True which coerces to 1
  • # Raku (also Perl polyglot), 5 unique, 13 bytes
  • ```
  • !()/(!()+!())
  • ```
  • () or empty list coerces to its length which is 0 in math operations and !0 is True which coerces to 1
#5: Post edited by user avatar Hydrazer‭ · 2022-02-10T03:58:47Z (almost 3 years ago)
  • # Raku (also Perl polyglot), 4 unique, 22 bytes
  • ```
  • ()**()/(()**()+()**())
  • ```
  • () or empty list coerces to its length which is 0 in math operations and 0 ** 0 is 1
  • # Raku (also Perl polyglot), 4 unique, 13 bytes
  • ```
  • !()/(!()+!())
  • ```
  • () or empty list coerces to its length which is 0 in math operations and !0 is True which coerces to 1
#4: Post edited by user avatar Hydrazer‭ · 2022-02-10T03:49:28Z (almost 3 years ago)
  • # Raku, 4 unique, 22 bytes
  • ```
  • ()**()/(()**()+()**())
  • ```
  • () or empty list coerces to its length which is 0 in math operations and 0 ** 0 is 1
  • # Raku (also Perl polyglot), 4 unique, 22 bytes
  • ```
  • ()**()/(()**()+()**())
  • ```
  • () or empty list coerces to its length which is 0 in math operations and 0 ** 0 is 1
#3: Post edited by user avatar Hydrazer‭ · 2022-02-10T03:45:08Z (almost 3 years ago)
  • # Raku, 6 unique, 22 bytes
  • ```
  • []**[]/([]**[]+[]**[])
  • ```
  • [] coerces to 0 and 0 ** 0 is 1
  • # Raku, 4 unique, 22 bytes
  • ```
  • ()**()/(()**()+()**())
  • ```
  • () or empty list coerces to its length which is 0 in math operations and 0 ** 0 is 1
#2: Post edited by user avatar Hydrazer‭ · 2022-02-10T03:37:05Z (almost 3 years ago)
  • # Raku, 5 unique, 22 bytes
  • ```
  • []**[]/([]**[]+[]**[])
  • ```
  • [] coerces to 0 and 0 ** 0 is 1
  • # Raku, 6 unique, 22 bytes
  • ```
  • []**[]/([]**[]+[]**[])
  • ```
  • [] coerces to 0 and 0 ** 0 is 1
#1: Initial revision by user avatar Hydrazer‭ · 2022-02-10T03:36:38Z (almost 3 years ago)
# Raku, 5 unique, 22 bytes
```
[]**[]/([]**[]+[]**[])
```

[] coerces to 0 and 0 ** 0 is 1