Skip to content

Instantly share code, notes, and snippets.

@cairdcoinheringaahing
Last active December 21, 2020 20:35
Show Gist options
  • Save cairdcoinheringaahing/95d1533d4dd5f65203a81f6601a5b29f to your computer and use it in GitHub Desktop.
Save cairdcoinheringaahing/95d1533d4dd5f65203a81f6601a5b29f to your computer and use it in GitHub Desktop.

For the descriptions, l refers to the left argument, r to the right. As Ƒ doesn't map over lists, (for some atom A that doesn't operate on lists) is equivalent to AƑ€Ạ for lists (i.e. the atom is invariant for each element)

For the nilad commands, is simply equalivalent to ⁼N, so they've been excluded from this list

The atoms WḲṆṾ all yield 0 no matter the left argument, and so are ignored in the list.

Atom Description
¬ Does l equal []?
½ Does l equal 0 or 1?
! Does l equal 0 or 1?
A Is l greater than or equal to 0?
B Does l equal []?
C Does l equal []?
D Does l equal []?
E Does l equal 1?
F Is l flat? Returns 0 for non-lists
G Is l a singleton list of depth 1 (i.e. [a] where a is a number)?
H Does l equal 0?
I Does l equal []?
J Is l a range? ([1,2,3,...,n])
K Is l a singleton list of depth 1?
L Does l equal 1?
M Does l equal [1]?
N Does l equal 0?
O Is l not a string?
P Is l a number?
Q Are all elements of l unique?
R Does l equal []?
S Is l a number?
T Is l a range?
U Is l a palindrome at all depths?*
V Is l a number?**
X Returns 1 for l = 1, returns 0/1 with varying probabilities for l ≠ 1
Y Is l a singleton list of depth 1?
Z Is l a symmetric matrix?
~ Does l equal []?
° Does l equal 0?
¹ Return 1
² Does l equal 0 or 1?
Does l equal 0 or 1?
Is l a number?
Is l a number?
Does l equal 0 or 1?
Does l equal 0?
Does l equal 1?
Does l equal []?
Is l a number?
Is l a string?
Is l a palindrome?
Is l sorted?
Does l equal [1]?
Is l a range?
Is l all 1s?
Does l equal 0?
Ȧ Does l equal 0 or 1?
Does l equal 0 or 1?
Ċ Is l an integer?
Does l equal []?
Ė Does l equal []?
  • Compare and ŒḂ with the input [[1, 2, 1], [3, 4], [1, 2, 1]] ** Potentially more side effects, but nothing obvious

Sorted by function

  • Is l equal to something?

    • 0: HN°Ḥ
    • 1: ELỊẒ
    • 0 or 1: ½!²ẠẸȦḂ
    • [1]: MṬẈ
    • []: ¬BCDIR~ḶḊĖ
  • Is l a something?

    • number: PSVḄḌṂ
    • singleton list of depth 1: GKY
    • range: JTỤ
    • string:
    • palindrome: UṚ
    • integer: Ċ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment