The ‘Maybe` type represents the possibility of some value or nothing.
Classes: None, Some
45 46 47
# File 'lib/ramda/internal/functors.rb', line 45 def self.new(x) x.nil? ? None.new : Some.new(x) end
49 50 51
# File 'lib/ramda/internal/functors.rb', line 49 def self.of(x) Some.new(x) end