Skip to main content
added 373 characters in body
Source Link
Dominic van Essen
  • 36.4k
  • 2
  • 22
  • 60

Nibbles, 33 2 bytes (64 nibbles)

<1/-,~

I somehow didn't expect that fold-ing over an infinite list, starting from infinity (the right-hand end) would work, but it does.

<1/-,~    # full function
/-,~$$  # get(with theimplicit firstarguments elementshown):
 -      # remove
    $   #   elements of the input list 
        # from
  ,~    #   the infinite list of positive integers
/  -     # withnow thefold inputover listthis subtractedinfinite list from itthe right
     $  # each time returning the left-hand argument
  -     # (so, finally, returning the first (left-most) element)

enter image description hereenter image description here

Nibbles, 3 bytes (6 nibbles)

<1-,~
<1      # get the first element of
   ,~   # infinite list of positive integers
  -     # with the input list subtracted from it

enter image description here

Nibbles, 3 2 bytes (4 nibbles)

/-,~

I somehow didn't expect that fold-ing over an infinite list, starting from infinity (the right-hand end) would work, but it does.

/-,~    # full function
/-,~$$  # (with implicit arguments shown):
 -      # remove
    $   #   elements of the input list 
        # from
  ,~    #   the infinite list of positive integers
/       # now fold over this infinite list from the right
     $  # each time returning the left-hand argument
  -     # (so, finally, returning the first (left-most) element)

enter image description here

Source Link
Dominic van Essen
  • 36.4k
  • 2
  • 22
  • 60

Nibbles, 3 bytes (6 nibbles)

<1-,~
<1      # get the first element of
   ,~   # infinite list of positive integers
  -     # with the input list subtracted from it

enter image description here