Skip to main content
added 82 characters in body
Source Link
daniero
  • 18.7k
  • 5
  • 51
  • 78

Ruby, 2925 bytes

Anonymous function:

->s{s.gsub /#{s[0]}/i,""}

Full prgram, 29 bytes:

puts gets.gsub /#{$_[0]}/i,""

Ruby, 29 bytes

puts gets.gsub /#{$_[0]}/i,""

Ruby, 25 bytes

Anonymous function:

->s{s.gsub /#{s[0]}/i,""}

Full prgram, 29 bytes:

puts gets.gsub /#{$_[0]}/i,""
Post Undeleted by daniero
deleted 77 characters in body
Source Link
daniero
  • 18.7k
  • 5
  • 51
  • 78

Ruby, 1829 bytes

As an anonymous function:

->s{s.delete s[0]}

As a full program, 21 bytes:

puts gets.delete$_[0]gsub /#{$_[0]}/i,""

Ruby, 18 bytes

As an anonymous function:

->s{s.delete s[0]}

As a full program, 21 bytes:

puts gets.delete$_[0]

Ruby, 29 bytes

puts gets.gsub /#{$_[0]}/i,""
Post Deleted by daniero
Source Link
daniero
  • 18.7k
  • 5
  • 51
  • 78

Ruby, 18 bytes

As an anonymous function:

->s{s.delete s[0]}

As a full program, 21 bytes:

puts gets.delete$_[0]