1
$\begingroup$

Consider

enter image description here

Is there a way to make a function justLink that parses a CloudObject[<link>] and returns just the string denoting the link (i.e., removes the CloudObject head?

$\endgroup$
1
$\begingroup$

Let's have look how is a CloudObject represented internally, using FullForm

FullForm@CloudObject["https://www.wolframcloud.com/objects/28cb3105-23a4-419d-9c26-b7badc8517f6"]
(* CloudObject["https://www.wolframcloud.com/objects/28cb3105-23a4-419d-9c26-b7badc8517f6"] *)

Ok, it's just a head and a string, so using First should suffice.

First@CloudObject["https://www.wolframcloud.com/objects/28cb3105-23a4-419d-9c26-b7badc8517f6"]
(* https://www.wolframcloud.com/objects/28cb3105-23a4-419d-9c26-b7badc8517f6 *)
| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.