Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

Commonmark migration
Source Link

#Brachylog

Brachylog

###Factoid

Factoid

###Length 1

Length 1

###Length 2

Length 2

###Length 3

Length 3

###Length 4

Length 4

###Length 5

Length 5

###Length 6

Length 6

###Length 7

Length 7

###Length 8

Length 8

###Length 9

Length 9

#Brachylog

###Factoid

###Length 1

###Length 2

###Length 3

###Length 4

###Length 5

###Length 6

###Length 7

###Length 8

###Length 9

Brachylog

Factoid

Length 1

Length 2

Length 3

Length 4

Length 5

Length 6

Length 7

Length 8

Length 9

replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Source Link

This is probably my favorite Brachylog program (most likely because it is twice as short as the Jelly answer on this challenge! it is twice as short as the Jelly answer on this challenge!). This is a program which palindromizes its input.

This is probably my favorite Brachylog program (most likely because it is twice as short as the Jelly answer on this challenge!). This is a program which palindromizes its input.

This is probably my favorite Brachylog program (most likely because it is twice as short as the Jelly answer on this challenge!). This is a program which palindromizes its input.

Post Made Community Wiki by Dennis
added 542 characters in body
Source Link
Fatalize
  • 39.6k
  • 5
  • 73
  • 165

###Length 9

#0|@e+:0&

This program computes the digital root of its input.

Just like in Prolog, we can write multiple rules for a single predicate, using |: the first rule #0 constrains the Input = the Ouput to be a single digit. If this is not possible, the second rule @e+:0& will split the input as a list of digits, then sum them and call Predicate 0 (the main predicate) recursively.

###Length 9

#0|@e+:0&

This program computes the digital root of its input.

Just like in Prolog, we can write multiple rules for a single predicate, using |: the first rule #0 constrains the Input = the Ouput to be a single digit. If this is not possible, the second rule @e+:0& will split the input as a list of digits, then sum them and call Predicate 0 (the main predicate) recursively.

added 602 characters in body
Source Link
Fatalize
  • 39.6k
  • 5
  • 73
  • 165
Loading
added 1612 characters in body
Source Link
Fatalize
  • 39.6k
  • 5
  • 73
  • 165
Loading
added 1277 characters in body
Source Link
Fatalize
  • 39.6k
  • 5
  • 73
  • 165
Loading
added 826 characters in body
Source Link
Fatalize
  • 39.6k
  • 5
  • 73
  • 165
Loading
added 776 characters in body
Source Link
Fatalize
  • 39.6k
  • 5
  • 73
  • 165
Loading
added 992 characters in body
Source Link
Fatalize
  • 39.6k
  • 5
  • 73
  • 165
Loading
added 726 characters in body
Source Link
Fatalize
  • 39.6k
  • 5
  • 73
  • 165
Loading
added 1701 characters in body
Source Link
Fatalize
  • 39.6k
  • 5
  • 73
  • 165
Loading
Source Link
Fatalize
  • 39.6k
  • 5
  • 73
  • 165
Loading

AltStyle によって変換されたページ (->オリジナル) /