Skip to main content
to unwrap

to unwrap

1 6.8
To get the value inside a container like Option or Result, causing an error if none exists
  • verb
  • /ʌnˈræp/
  • Specialized
translation icon : desempaquetar
  • I pulled into a gas station, realizing that to turn the Courier off I would have to unwrap the wires.

Examples

  • Why can we not unwrap our wrapped Bitcoin and what's going on with the DPEG.

  • Because if index is not nil, then unwrapping it right here is always going to work.

  • Then let me show you how to unwrap it.

    Fiction book (1994)
  • You'll want to do some wrap() and unwrap(), else you'll have double '#container's.

    Blog text (29)
  • That's what really set me off... now I can crawl back into my cave and unwrap a new software package delivered from the coding gods in Mountain View.

    Blog text (8)
  • E, the Bank unwraps the transaction details and new nonce, performs the check steps, and nonce transformation, wraps it up with the secret, and sends it back to the PC the user is using.

    Blog text (10)
  • In programming, you can unwrap a value from its container to use it in your calculations.

  • To access the result, you must first unwrap the data from its wrapped type.

  • When you unwrap the option type, you either get a usable value or an error if it was empty.

Synonyms

to unbox
vsto unwrap
  • Specialized
7.1

Change a wrapped number or value into the simple form the program can use

removes a container to get the inner value and can raise an error if empty

Antonyms

729 1.0

To cover something by putting material around it

How Risky

to unwrap
  • Specialized
1 6.8
to extract
166 3.9
to check
1.0
peek
162 2.1

Surface Forms

unwrap infinitive
unwrapped past
unwrapped past participle
unwrapping present participle
unwraps third person singular

Morphology

unwrap = wrap (semi-transparent) = un + wrap

Computing sense is a technical metaphor (remove a container to access the inner value); morphologically obvious but domain-specific.

Etymology

The word unwrap in computer code follows the same idea: un- 'to remove' and wrap 'to cover', like opening a wrapped gift. So to unwrap a value is to 'take the value out' of its container in the program.