Extract String from Array

It appears that get_weight(link) returns an array of strings with one element.
Use only (or first) to get rid of that.

all_weights = only.(get_weight.(about_breeds_links))
or
all_weights = about_breeds_links .|> get_weight .|> only

2 Likes