Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
To get a value from an assoc and provide a default value if the value does not exist, I am using the following definition: :: at-def ( key assoc default -- value ) key assoc ?at [ drop default ] w...
#1: Initial revision
How to get a default value from an assoc in Factor programming language
To get a value from an assoc and provide a default value if the value does not exist, I am using the following definition: ``` :: at-def ( key assoc default -- value ) key assoc ?at [ drop default ] when ; ``` Is there a more specialized word to do this? (or a different class to use?)