hmaddocks
- 04:36 (UTC +12:00)
- https://henry.bearblog.dev
Block or report hmaddocks
Report abuse
Contact GitHub support about this user’s behavior. Learn more about reporting abuse.
Pinned Loading
-
Implementation of a Result monad for... Implementation of a Result monad for Ruby
1
# frozen_string_literal: true2
3
# Represents an immutable Result object that can contain either a successful value4
# or an error message. This implements the Result pattern for handling success/failure5
# scenarios in a functional way. -
A simple Ruby memoization/cache class A simple Ruby memoization/cache class
1
class Memo
2
def initialize
3
@mutex = Mutex.new
4
@values = {}
5
end


