** (BadArityError) #Function<13.126501267/2 in :erl_eval.expr/5> with arity 2 called with 1 argument

iex(1)> data = 
[
  {{"zMFqXuoyrn5w17PFurTqxB7GsS71fp9dfk6XFwxbPCy",
    [
      %{
        asset: "zMFqXuoyrn5w17PFurTqxB7GsS71fp9dfk6XFwxbPCy",
        priced_in: ["8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS"]
      }
    ]},
   %{
     asset: "zMFqXuoyrn5w17PFurTqxB7GsS71fp9dfk6XFwxbPCy",
     balance: 4.7e-7,
     name: "Bitcoin Cash"
   }},
  {{"bPWkA3MNyEr1TuDchWgdpqJZhGhfPXj7dJdr3qiW2kD",
    [
      %{
        asset: "bPWkA3MNyEr1TuDchWgdpqJZhGhfPXj7dJdr3qiW2kD",
        priced_in: ["4LHHvYGNKJUg5hj65aGD5vgScvCBmLpdRFtjokvCjSL8"]
      }
    ]},...
]
iex(2)> Enum.map(data, fn {asset_id, _} -> %{asset: asset_id} end)
[
  %{
    asset: {"zMFqXuoyrn5w17PFurTqxB7GsS71fp9dfk6XFwxbPCy",
     [
       %{
         asset: "zMFqXuoyrn5w17PFurTqxB7GsS71fp9dfk6XFwxbPCy",
         priced_in: ["8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS"]
       }
     ]} 
  },
  %{
    asset: {"bPWkA3MNyEr1TuDchWgdpqJZhGhfPXj7dJdr3qiW2kD",
     [
       %{
         asset: "bPWkA3MNyEr1TuDchWgdpqJZhGhfPXj7dJdr3qiW2kD",
         priced_in: ["4LHHvYGNKJUg5hj65aGD5vgScvCBmLpdRFtjokvCjSL8"]
       }
     ]}
  },...
]
iex(3)> Enum.map(data, fn {asset_id, [%{_: _, priced_in: priced_in}]}, _ -> %{asset: asset_id, priced_in: priced_in} end)
** (BadArityError) #Function<13.126501267/2 in :erl_eval.expr/5> with arity 2 called with 1 argument

What did I miss? And thanks for helping with my noob question :slight_smile:

(Incidentally, the ultimate goal is to clean up this mess so that it looks like this-

%{
asset: asset_id, 
name: name, 
balance: balance, 
priced_in: priced_in
}

)

The function you’re passing to Enum.map has 2 arguments, but Enum.map expects a function with 1 argument.

That’s what the error message is saying: “arity 2 called with 1 argument”

You have:

fn {asset_id, [%{_: _, priced_in: priced_in}]}, _ ->

but it should be

fn {asset_id, [%{_: _, priced_in: priced_in}]} ->
5 Likes

iex(1)> Enum.map(data, fn {asset_id, [%{_: _, priced_in: priced_in}]} -> %{asset: asset_id, priced_in: priced_in} end)
** (FunctionClauseError) no function clause matching in :erl_eval."-inside-an-interpreted-fun-"/1

There is no field :_ in your maps, so %{_: _, priced_in: priced_in} do not match provided entry, and as there is no other matches, it fails.

2 Likes

When I try iex(200)> Enum.map(data, fn {asset_id, [%{_asset: _asset, priced_in: priced_in}]} -> %{asset: asset_id, priced_in: priced_in} end)

I get:
** (FunctionClauseError) no function clause matching in :erl_eval."-inside-an-interpreted-fun-"/1

I’m sooo lost . . . :frowning:

Because the don’t care sign _ does not apply to keys, but to variables.

2 Likes

iex(1)> Enum.map(data, fn {asset_id, [%{asset: asset, priced_in: priced_in}]} -> %{asset: asset_id, priced_in: priced_in} end)
warning: variable "asset" is unused (if the variable is not meant to be used, prefix it with an underscore)
  iex:200

** (FunctionClauseError) no function clause matching in :erl_eval."-inside-an-interpreted-fun-"/1

@Maxximiliann instead of trying a bunch of patterns, let’s figure out what kind of value you’re working with:

Enum.map(data, fn item -> item |> IO.inspect end)

Then based on the output of IO.inspect, see if you can come up with the pattern you want. This is what to do when lost, inspect the data you’re trying to mess with.

3 Likes

also asset is not equal to asset_id

1 Like
iex(1)> Enum.map(data, fn item -> item |> IO.inspect end)
{{"zMFqXuoyrn5w17PFurTqxB7GsS71fp9dfk6XFwxbPCy",
  [
    %{
      asset: "zMFqXuoyrn5w17PFurTqxB7GsS71fp9dfk6XFwxbPCy",
      priced_in: ["8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS"]
    }
  ]},
 %{
   asset: "zMFqXuoyrn5w17PFurTqxB7GsS71fp9dfk6XFwxbPCy",
   balance: 4.7e-7,
   name: "Bitcoin Cash"
 }}
{{"bPWkA3MNyEr1TuDchWgdpqJZhGhfPXj7dJdr3qiW2kD",
  [
    %{
      asset: "bPWkA3MNyEr1TuDchWgdpqJZhGhfPXj7dJdr3qiW2kD",
      priced_in: ["4LHHvYGNKJUg5hj65aGD5vgScvCBmLpdRFtjokvCjSL8"]
    }
  ]},
 %{
   asset: "bPWkA3MNyEr1TuDchWgdpqJZhGhfPXj7dJdr3qiW2kD",
   balance: 1.9e-7,
   name: "TurtleNetwork"
 }}
{{"HZk1mbfuJpmxU1Fs4AX5MWLVYtctsNcg6e2C6VKqK8zk",
  [
    %{
      asset: "HZk1mbfuJpmxU1Fs4AX5MWLVYtctsNcg6e2C6VKqK8zk",
      priced_in: ["8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS", "WAVES"]
    }
  ]},
 %{
   asset: "HZk1mbfuJpmxU1Fs4AX5MWLVYtctsNcg6e2C6VKqK8zk",
   balance: 2.176e-5,
   name: "Litecoin"
 }}
{{"EYz8Zvs62D4d7F5ZgXHCWuzuFaZg63FYnfVQrTWQoLSK",
  [
    %{
      asset: "EYz8Zvs62D4d7F5ZgXHCWuzuFaZg63FYnfVQrTWQoLSK",
      priced_in: ["8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS",
       "DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p", "WAVES"]
    }
  ]},
 %{
   asset: "EYz8Zvs62D4d7F5ZgXHCWuzuFaZg63FYnfVQrTWQoLSK",
   balance: 5.4682,
   name: "Kolion"
 }}
{{"DHgwrRvVyqJsepd32YbBqUeDH4GJ1N984X8QoekjgH8J",
  [
    %{
      asset: "DHgwrRvVyqJsepd32YbBqUeDH4GJ1N984X8QoekjgH8J",
      priced_in: ["4SvrfTcELe39nd28sa64mVEifH5DXpCFemZcu3yWkhqi",
       "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS",
       "DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p", "WAVES"]
    }
  ]},
 %{
   asset: "DHgwrRvVyqJsepd32YbBqUeDH4GJ1N984X8QoekjgH8J",
   balance: 0.01,
   name: "WavesCommunity"
 }}
{{"B3uGHFRpSUuGEDWjqB9LWWxafQj8VTvpMucEyoxzws5H",
  [
    %{
      asset: "B3uGHFRpSUuGEDWjqB9LWWxafQj8VTvpMucEyoxzws5H",
      priced_in: ["8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS", "WAVES"]
    }
  ]},
 %{
   asset: "B3uGHFRpSUuGEDWjqB9LWWxafQj8VTvpMucEyoxzws5H",
   balance: 1.0e-8,
   name: "DASH"
 }}
{{"9TexWwLfw4wt4cvGaiYrFkiDHMZHsySVYehKZwehai4k",
  [
    %{
      asset: "9TexWwLfw4wt4cvGaiYrFkiDHMZHsySVYehKZwehai4k",
      priced_in: ["gnoAVs6Fm8e9PsbdGV2thGJkCaJ6xnyLeu5Lp8o2JuU"]
    }
  ]},
 %{
   asset: "9TexWwLfw4wt4cvGaiYrFkiDHMZHsySVYehKZwehai4k",
   balance: 0.04166518,
   name: "BADA"
 }}
{{"8Yw4QmskrQauQeNjgh2fTQ4swmkNm85GTQzdHEf6QdUU",
  [
    %{
      asset: "8Yw4QmskrQauQeNjgh2fTQ4swmkNm85GTQzdHEf6QdUU",
      priced_in: ["WAVES"]
    }
  ]},
 %{
   asset: "8Yw4QmskrQauQeNjgh2fTQ4swmkNm85GTQzdHEf6QdUU",
   balance: 21.08167447,
   name: "ABOT"
 }}
{{"8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS",
  [
    %{
      asset: "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS",
      priced_in: ["DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p",
       "Ft8X1v1LTa1ABafufpaCWyVj8KkaxUWE6xBhW6sNFJck"]
    }
  ]},
 %{
   asset: "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS",
   balance: 0.00758563,
   name: "WBTC"
 }}
{{"5WvPKSJXzVE2orvbkJ8wsQmmQKqTv9sGBPksV4adViw3",
  [
    %{
      asset: "5WvPKSJXzVE2orvbkJ8wsQmmQKqTv9sGBPksV4adViw3",
      priced_in: ["474jTeYx2r2Va35794tCScAXWJG9hU2HcgxzMowaZUnu",
       "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS", "WAVES"]
    }
  ]},
 %{
   asset: "5WvPKSJXzVE2orvbkJ8wsQmmQKqTv9sGBPksV4adViw3",
   balance: 0.01668726,
   name: "Monero"
 }}
{{"51LxAtwBXapvvTFSbbh4nLyWFxH6x8ocfNvrXxbTChze",
  [
    %{
      asset: "51LxAtwBXapvvTFSbbh4nLyWFxH6x8ocfNvrXxbTChze",
      priced_in: ["WAVES"]
    }
  ]},
 %{
   asset: "51LxAtwBXapvvTFSbbh4nLyWFxH6x8ocfNvrXxbTChze",
   balance: 6.0e-6,
   name: "TORCorp"
 }}
{{"4LHHvYGNKJUg5hj65aGD5vgScvCBmLpdRFtjokvCjSL8",
  [
    %{
      asset: "4LHHvYGNKJUg5hj65aGD5vgScvCBmLpdRFtjokvCjSL8",
      priced_in: ["8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS", "WAVES"]
    }
  ]},
 %{
   asset: "4LHHvYGNKJUg5hj65aGD5vgScvCBmLpdRFtjokvCjSL8",
   balance: 47.92501839,
   name: "Vostok"
 }}
{{"474jTeYx2r2Va35794tCScAXWJG9hU2HcgxzMowaZUnu",
  [
    %{
      asset: "474jTeYx2r2Va35794tCScAXWJG9hU2HcgxzMowaZUnu",
      priced_in: ["8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS",
       "DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p",
       "Ft8X1v1LTa1ABafufpaCWyVj8KkaxUWE6xBhW6sNFJck", "WAVES"]
    }
  ]},
 %{
   asset: "474jTeYx2r2Va35794tCScAXWJG9hU2HcgxzMowaZUnu",
   balance: 0.05218729,
   name: "WETH"
 }}
[
  {{"zMFqXuoyrn5w17PFurTqxB7GsS71fp9dfk6XFwxbPCy",
    [
      %{
        asset: "zMFqXuoyrn5w17PFurTqxB7GsS71fp9dfk6XFwxbPCy",
        priced_in: ["8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS"]
      }
    ]},
   %{
     asset: "zMFqXuoyrn5w17PFurTqxB7GsS71fp9dfk6XFwxbPCy",
     balance: 4.7e-7,
     name: "Bitcoin Cash"
   }},
  {{"bPWkA3MNyEr1TuDchWgdpqJZhGhfPXj7dJdr3qiW2kD",
    [
      %{
        asset: "bPWkA3MNyEr1TuDchWgdpqJZhGhfPXj7dJdr3qiW2kD",
        priced_in: ["4LHHvYGNKJUg5hj65aGD5vgScvCBmLpdRFtjokvCjSL8"]
      }
    ]},
   %{
     asset: "bPWkA3MNyEr1TuDchWgdpqJZhGhfPXj7dJdr3qiW2kD",
     balance: 1.9e-7,
     name: "TurtleNetwork"
   }},
  {{"HZk1mbfuJpmxU1Fs4AX5MWLVYtctsNcg6e2C6VKqK8zk",
    [
      %{
        asset: "HZk1mbfuJpmxU1Fs4AX5MWLVYtctsNcg6e2C6VKqK8zk",
        priced_in: ["8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS", "WAVES"]
      }
    ]},
   %{
     asset: "HZk1mbfuJpmxU1Fs4AX5MWLVYtctsNcg6e2C6VKqK8zk",
     balance: 2.176e-5,
     name: "Litecoin"
   }},
  {{"EYz8Zvs62D4d7F5ZgXHCWuzuFaZg63FYnfVQrTWQoLSK",
    [
      %{
        asset: "EYz8Zvs62D4d7F5ZgXHCWuzuFaZg63FYnfVQrTWQoLSK",
        priced_in: ["8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS",
         "DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p", "WAVES"]
      }
    ]},
   %{
     asset: "EYz8Zvs62D4d7F5ZgXHCWuzuFaZg63FYnfVQrTWQoLSK",
     balance: 5.4682,
     name: "Kolion"
   }},
  {{"DHgwrRvVyqJsepd32YbBqUeDH4GJ1N984X8QoekjgH8J",
    [
      %{
        asset: "DHgwrRvVyqJsepd32YbBqUeDH4GJ1N984X8QoekjgH8J",
        priced_in: ["4SvrfTcELe39nd28sa64mVEifH5DXpCFemZcu3yWkhqi",
         "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS",
         "DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p", "WAVES"]
      }
    ]},
   %{
     asset: "DHgwrRvVyqJsepd32YbBqUeDH4GJ1N984X8QoekjgH8J",
     balance: 0.01,
     name: "WavesCommunity"
   }},
  {{"B3uGHFRpSUuGEDWjqB9LWWxafQj8VTvpMucEyoxzws5H",
    [
      %{
        asset: "B3uGHFRpSUuGEDWjqB9LWWxafQj8VTvpMucEyoxzws5H",
        priced_in: ["8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS", "WAVES"]
      }
    ]},
   %{
     asset: "B3uGHFRpSUuGEDWjqB9LWWxafQj8VTvpMucEyoxzws5H",
     balance: 1.0e-8,
     name: "DASH"
   }},
  {{"9TexWwLfw4wt4cvGaiYrFkiDHMZHsySVYehKZwehai4k",
    [
      %{
        asset: "9TexWwLfw4wt4cvGaiYrFkiDHMZHsySVYehKZwehai4k",
        priced_in: ["gnoAVs6Fm8e9PsbdGV2thGJkCaJ6xnyLeu5Lp8o2JuU"]
      }
    ]},
   %{
     asset: "9TexWwLfw4wt4cvGaiYrFkiDHMZHsySVYehKZwehai4k",
     balance: 0.04166518,
     name: "BADA"
   }},
  {{"8Yw4QmskrQauQeNjgh2fTQ4swmkNm85GTQzdHEf6QdUU",
    [
      %{
        asset: "8Yw4QmskrQauQeNjgh2fTQ4swmkNm85GTQzdHEf6QdUU",
        priced_in: ["WAVES"]
      }
    ]},
   %{
     asset: "8Yw4QmskrQauQeNjgh2fTQ4swmkNm85GTQzdHEf6QdUU",
     balance: 21.08167447,
     name: "ABOT"
   }},
  {{"8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS",
    [
      %{
        asset: "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS",
        priced_in: ["DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p",
         "Ft8X1v1LTa1ABafufpaCWyVj8KkaxUWE6xBhW6sNFJck"]
      }
    ]},
   %{
     asset: "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS",
     balance: 0.00758563,
     name: "WBTC"
   }},
  {{"5WvPKSJXzVE2orvbkJ8wsQmmQKqTv9sGBPksV4adViw3",
    [
      %{
        asset: "5WvPKSJXzVE2orvbkJ8wsQmmQKqTv9sGBPksV4adViw3",
        priced_in: ["474jTeYx2r2Va35794tCScAXWJG9hU2HcgxzMowaZUnu",
         "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS", "WAVES"]
      }
    ]},
   %{
     asset: "5WvPKSJXzVE2orvbkJ8wsQmmQKqTv9sGBPksV4adViw3",
     balance: 0.01668726,
     name: "Monero"
   }},
  {{"51LxAtwBXapvvTFSbbh4nLyWFxH6x8ocfNvrXxbTChze",
    [
      %{
        asset: "51LxAtwBXapvvTFSbbh4nLyWFxH6x8ocfNvrXxbTChze",
        priced_in: ["WAVES"]
      }
    ]},
   %{
     asset: "51LxAtwBXapvvTFSbbh4nLyWFxH6x8ocfNvrXxbTChze",
     balance: 6.0e-6,
     name: "TORCorp"
   }},
  {{"4LHHvYGNKJUg5hj65aGD5vgScvCBmLpdRFtjokvCjSL8",
    [
      %{
        asset: "4LHHvYGNKJUg5hj65aGD5vgScvCBmLpdRFtjokvCjSL8",
        priced_in: ["8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS", "WAVES"]
      }
    ]},
   %{
     asset: "4LHHvYGNKJUg5hj65aGD5vgScvCBmLpdRFtjokvCjSL8",
     balance: 47.92501839,
     name: "Vostok"
   }},
  {{"474jTeYx2r2Va35794tCScAXWJG9hU2HcgxzMowaZUnu",
    [
      %{
        asset: "474jTeYx2r2Va35794tCScAXWJG9hU2HcgxzMowaZUnu",
        priced_in: ["8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS",
         "DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p",
         "Ft8X1v1LTa1ABafufpaCWyVj8KkaxUWE6xBhW6sNFJck", "WAVES"]
      }
    ]},
   %{
     asset: "474jTeYx2r2Va35794tCScAXWJG9hU2HcgxzMowaZUnu",
     balance: 0.05218729,
     name: "WETH"
   }}
]

iex(2)> Enum.map(data, fn {{_, [%{asset: asset_id, priced_in: [priced_in]}]},_} -> %{asset: asset_id, priced_in: [priced_in]} end)
** (FunctionClauseError) no function clause matching in :erl_eval."-inside-an-interpreted-fun-"/1    
    
    The following arguments were given to :erl_eval."-inside-an-interpreted-fun-"/1:
    
        # 1
        {{"HZk1mbfuJpmxU1Fs4AX5MWLVYtctsNcg6e2C6VKqK8zk",
          [
            %{
              asset: "HZk1mbfuJpmxU1Fs4AX5MWLVYtctsNcg6e2C6VKqK8zk",
              priced_in: ["8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS", "WAVES"]
            }
          ]},
         %{
           asset: "HZk1mbfuJpmxU1Fs4AX5MWLVYtctsNcg6e2C6VKqK8zk",
           balance: 2.176e-5,
           name: "Litecoin"
         }}

Thanks, so much for your insights. I still can’t seem to “see” in Elixir yet . . .

I tried to reduce your example to something manageable and, well, it works there:

data = [
  {{"foo",
    [
      %{
        asset: "foo",
        priced_in: ["bar"]
      }
    ]},
    %{
      asset: "foo",
      balance: 4.7e-7,
      name: "Bitcoin Cash"
    }},
  {{"baz",
    [
      %{
        asset: "baz",
        priced_in: ["qux"]
      }
    ]},
    %{
      asset: "baz",
      balance: 1.9e-7,
      name: "TurtleNetwork"
    }}
]

data
|> Enum.map(fn
  {{_, [data]}, _} -> data
end)
|> IO.inspect()
1 Like

Success!!

iex(216)> Enum.map(data, fn {{_, [%{asset: asset, priced_in: priced_in}]},%{balance: balance, name: name}} -> %{asset: asset, name: name, balance: balance, priced_in: priced_in} end)
[
  %{
    asset: "zMFqXuoyrn5w17PFurTqxB7GsS71fp9dfk6XFwxbPCy",
    balance: 4.7e-7,
    name: "Bitcoin Cash",
    priced_in: ["8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS"]
  },
  %{
    asset: "bPWkA3MNyEr1TuDchWgdpqJZhGhfPXj7dJdr3qiW2kD",
    balance: 1.9e-7,
    name: "TurtleNetwork",
    priced_in: ["4LHHvYGNKJUg5hj65aGD5vgScvCBmLpdRFtjokvCjSL8"]
  },
  %{
    asset: "HZk1mbfuJpmxU1Fs4AX5MWLVYtctsNcg6e2C6VKqK8zk",
    balance: 2.176e-5,
    name: "Litecoin",
    priced_in: ["8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS", "WAVES"]
  },
  %{
    asset: "EYz8Zvs62D4d7F5ZgXHCWuzuFaZg63FYnfVQrTWQoLSK",
    balance: 5.4682,
    name: "Kolion",
    priced_in: ["8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS",
     "DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p", "WAVES"]
  },
  %{
    asset: "DHgwrRvVyqJsepd32YbBqUeDH4GJ1N984X8QoekjgH8J",
    balance: 0.01,
    name: "WavesCommunity",
    priced_in: ["4SvrfTcELe39nd28sa64mVEifH5DXpCFemZcu3yWkhqi",
     "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS",
     "DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p", "WAVES"]
  }...
]

I had no idea one could just completely ignore key/value pairs when pattern matching, thanks!

2 Likes